Friday, January 6, 2012

[YouTube-API] SUP feed sending bad json

When making a query to http://gdata.youtube.com/sup?seconds=900

I get back:

{
"updated_time":"2012-01-06T15:15:00Z",
"since":"2012-01-06T15:00:00Z",
"period":900,
"available_periods":{
"300":"http://gdata.youtube.com/sup?seconds=300",
"600":"http://gdata.youtube.com/sup?seconds=600",
"900":"http://gdata.youtube.com/sup?seconds=900",
},
...

Notice the trailing comma after the 900? This is not valid json, and breaks both python's json parser and the gson parser. The same thing happens at the end of the "updates" array as well.

Can someone please fix this?

Thanks,
David

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/iTFcZ_a75lAJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment