Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Hobson_Media
Binge Watcher

JSON Nightmare

I'm fairly new to the Roku Channel world and hired a free lancer to build my channel. He disappeared without leaving behind a "how to update" the channel checklist and now I'm pulling out both of my remaining hairs trying to figure out why I keep getting an error when I input the updated JSON file.

The error message from Roku is simple (see screen shot) but it doesn't help me decipher the error.

Is there anyone willing/able to take a look at the JSON file and see if you detect any errors? 

https://api.myjson.com/bins/tx776

My process was to copy/paste/replace existing code, dropping in the update info from Vimeo, so it's entirely possible I made a mistake in some way I can't diagnose.

I'm not please with the difficulty in trying to update the channel, so if someone has advice on a better way, I'm all ears. Thanks
0 Kudos
6 REPLIES 6
destruk
Binge Watcher

Re: JSON Nightmare

It appears you put the framerate for the bitrate could be one of the problems.
                       "bitRate": 59.94
0 Kudos
Hobson_Media
Binge Watcher

Re: JSON Nightmare

Is that the issue in the code for the new video at line 681 or are you seeing it elsewhere?

I thought I had copied from the other successful video uploads. Appreciate the insight and hope it’s somethint simple like you’re suggesting.
0 Kudos
destruk
Binge Watcher

Re: JSON Nightmare

It appears all your bitrates are framerates.  But that's probably not the main problem.
0 Kudos
Hobson_Media
Binge Watcher

Re: JSON Nightmare

The channel has been working fine until today when I tried to update it with the addition of a new video. The Topgolf Detroit video at line 681 is the problem but I can't figure out why.
0 Kudos
Hobson_Media
Binge Watcher

Re: JSON Nightmare

I have a fresh JSON feed and it shows no errors...but my video doesn't appear on the channel. Sigh.

JSON Feed
0 Kudos
Baradanikto
Roku Guru

Re: JSON Nightmare

I'm not sure you're still looking for help, but, I found your post and used the software I wrote to validate your feed file.  You have several problems with the 'bitRate' field on your shortFormVideos.  They are actually integers and not 'float' values.  For future reference, your feed file is representative of a Direct Publisher channel.  Here's the errors I found:


Input string '29.97' is not a valid integer. Path 'shortFormVideos[0].content.videos[0].bitRate', line 1, position 466.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[0].content.videos[1].bitRate', line 1, position 671.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[0].content.videos[2].bitRate', line 1, position 876.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[6].content.videos[0].bitRate', line 1, position 8608.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[6].content.videos[1].bitRate', line 1, position 8813.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[6].content.videos[2].bitRate', line 1, position 9018.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[6].content.videos[3].bitRate', line 1, position 9223.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[7].content.videos[0].bitRate', line 1, position 10074.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[7].content.videos[1].bitRate', line 1, position 10279.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[7].content.videos[2].bitRate', line 1, position 10484.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[8].content.videos[0].bitRate', line 1, position 11196.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[8].content.videos[1].bitRate', line 1, position 11401.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[8].content.videos[2].bitRate', line 1, position 11606.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[9].content.videos[0].bitRate', line 1, position 12493.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[9].content.videos[1].bitRate', line 1, position 12698.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[9].content.videos[2].bitRate', line 1, position 12903.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[9].content.videos[3].bitRate', line 1, position 13108.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[10].content.videos[0].bitRate', line 1, position 13853.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[10].content.videos[1].bitRate', line 1, position 14058.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[10].content.videos[2].bitRate', line 1, position 14263.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[11].content.videos[0].bitRate', line 1, position 15019.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[11].content.videos[1].bitRate', line 1, position 15224.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[11].content.videos[2].bitRate', line 1, position 15429.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[11].content.videos[3].bitRate', line 1, position 15634.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[12].content.videos[0].bitRate', line 1, position 16432.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[12].content.videos[1].bitRate', line 1, position 16637.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[12].content.videos[2].bitRate', line 1, position 16842.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[13].content.videos[0].bitRate', line 1, position 17590.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[13].content.videos[1].bitRate', line 1, position 17795.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[13].content.videos[2].bitRate', line 1, position 18000.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[13].content.videos[3].bitRate', line 1, position 18205.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[14].content.videos[0].bitRate', line 1, position 19001.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[14].content.videos[1].bitRate', line 1, position 19206.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[14].content.videos[2].bitRate', line 1, position 19411.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[14].content.videos[3].bitRate', line 1, position 19616.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[15].content.videos[0].bitRate', line 1, position 20485.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[15].content.videos[1].bitRate', line 1, position 20690.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[15].content.videos[2].bitRate', line 1, position 20895.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[15].content.videos[3].bitRate', line 1, position 21100.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[16].content.videos[0].bitRate', line 1, position 21963.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[16].content.videos[1].bitRate', line 1, position 22168.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[16].content.videos[2].bitRate', line 1, position 22373.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[17].content.videos[0].bitRate', line 1, position 23234.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[17].content.videos[1].bitRate', line 1, position 23439.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[17].content.videos[2].bitRate', line 1, position 23644.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[18].content.videos[0].bitRate', line 1, position 24424.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[18].content.videos[1].bitRate', line 1, position 24629.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[18].content.videos[2].bitRate', line 1, position 24834.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[19].content.videos[0].bitRate', line 1, position 25646.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[19].content.videos[1].bitRate', line 1, position 25851.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[19].content.videos[2].bitRate', line 1, position 26056.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[19].content.videos[3].bitRate', line 1, position 26261.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[20].content.videos[0].bitRate', line 1, position 27076.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[20].content.videos[1].bitRate', line 1, position 27281.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[20].content.videos[2].bitRate', line 1, position 27486.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[21].content.videos[0].bitRate', line 1, position 28368.
Input string '59.94' is not a valid integer. Path 'shortFormVideos[21].content.videos[1].bitRate', line 1, position 28573.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[21].content.videos[2].bitRate', line 1, position 28778.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[22].content.videos[0].bitRate', line 1, position 29641.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[22].content.videos[1].bitRate', line 1, position 29846.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[23].content.videos[0].bitRate', line 1, position 30647.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[23].content.videos[1].bitRate', line 1, position 30852.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[23].content.videos[2].bitRate', line 1, position 31057.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[24].content.videos[0].bitRate', line 1, position 31858.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[24].content.videos[1].bitRate', line 1, position 32063.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[24].content.videos[2].bitRate', line 1, position 32268.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[25].content.videos[0].bitRate', line 1, position 33199.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[25].content.videos[1].bitRate', line 1, position 33404.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[25].content.videos[2].bitRate', line 1, position 33609.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[26].content.videos[0].bitRate', line 1, position 34490.
Input string '59.94' is not a valid integer. Path 'shortFormVideos[26].content.videos[1].bitRate', line 1, position 34695.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[26].content.videos[2].bitRate', line 1, position 34900.
Input string '59.94' is not a valid integer. Path 'shortFormVideos[27].content.videos[0].bitRate', line 1, position 35711.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[27].content.videos[1].bitRate', line 1, position 35916.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[27].content.videos[2].bitRate', line 1, position 36121.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[28].content.videos[0].bitRate', line 1, position 36898.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[28].content.videos[1].bitRate', line 1, position 37103.
Input string '59.94' is not a valid integer. Path 'shortFormVideos[28].content.videos[2].bitRate', line 1, position 37308.
Input string '59.94' is not a valid integer. Path 'shortFormVideos[29].content.videos[0].bitRate', line 1, position 38070.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[29].content.videos[1].bitRate', line 1, position 38275.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[29].content.videos[2].bitRate', line 1, position 38480.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[30].content.videos[0].bitRate', line 1, position 39215.
Input string '59.94' is not a valid integer. Path 'shortFormVideos[30].content.videos[1].bitRate', line 1, position 39420.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[30].content.videos[2].bitRate', line 1, position 39625.
Input string '59.94' is not a valid integer. Path 'shortFormVideos[31].content.videos[0].bitRate', line 1, position 40356.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[31].content.videos[1].bitRate', line 1, position 40561.
Input string '29.97' is not a valid integer. Path 'shortFormVideos[31].content.videos[2].bitRate', line 1, position 40766.
FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos