Pretty Awesome

Avatar image for pkjr92
pkjr92

71

Forum Posts

14

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By pkjr92

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
LordAndrew

14609

Forum Posts

98305

Wiki Points

0

Followers

Reviews: 0

User Lists: 36

#2  Edited By LordAndrew

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
sully

86

Forum Posts

17

Wiki Points

0

Followers

Reviews: 0

User Lists: 2

#3  Edited By sully

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
papuccino1

355

Forum Posts

3487

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#4  Edited By papuccino1

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