[Developers] json_decode issue

Vivek Puri vp at startupsquad.com
Mon Sep 8 20:37:52 UTC 2008


I am fetching data from freebase and running it through my php script. The
php script performs json_decode <http://us.php.net/json_decode> of the json
output from freebase. On almost all the data i fetch, it works just fine,
except for the following API call:
'{"query":{ "query" : [ { "album" : [ { "/common/topic/image" : [ {} ],
"length" : null, "id" : null, "name" : null, "sort" : "name", "release_date"
: null, "track" : [] } ], "name~=" : "Nusrat Fateh Ali Khan", "type" :
"/music/artist" } ] }}'

In the above case when i do the json_decode, i get output as null. Any ideas
what might be causing that? My php version is 5.2.3

Thanks
-- 
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080908/9fe656dc/attachment.htm 


More information about the Developers mailing list