0

json to xml in YQL console

Excuse me if this is elementary, but I'm an infrequent user of the YQL console.  I've had success in using the console to read and parse json files and return them as XML.  I'm trying it on what appears to be a valid json file, but I'm not getting any results.

I'm trying a basic: select * from json where url = "http://www1.realclearpolitics.com/json/video.js"

Can anyone see why this doesn't return anything?

TIA

by
1 Reply
  • It could be that the server that is hosting video.js is not sending the correct content headers for that json file. it should be something like:

    Content-Type: application/json or text/javascript

    realclearpolitics.com is not sending a Content-Type header at all.


    Thanks -Paul
    YQL Team
    0

Recent Posts

in YQL