Avatar image for pkjr92
#1 Posted by pkjr92 (71 posts) -

I have to say, having access to all this information is pretty cool, especially for someone like me who just likes to experiment with stuff.  I built a test search/info page (joshguerette.site90.com, it's a test domain as my provider doesn't like PHP headers or something), and it allowed me to learn a little XML (well, SimpleXML) along the way. 
I do have a question though, any advantages to using JSON instead of XML?  I didn't really know too much about either when I started, but I understood the concept of XML better so that's why I chose it.  I am curious as to what makes JSON a lesser/equal/better choice to use, and if anyone knows of any good reading on it, let me know.

Avatar image for lordandrew
#2 Posted by LordAndrew (14601 posts) -

JSON is ideal for JavaScript. If you're not using JavaScript, it doesn't make much difference which format you use. JSON has a smaller payload, but if that doesn't matter to you then just pick the one you're most familiar with and use that.

Avatar image for sully
#3 Posted by sully (85 posts) -

As mentioned above, JSON just has lower overhead than XML, possibly at the cost of being less readable by humans - but that's usually not a big concern. 

Avatar image for papuccino1
#4 Posted by papuccino1 (355 posts) -

Actually I find JSON to be much more readable at a glance than XML.