ProgrammableWeb.com has detected an interesting trend in application program interfaces (APIs). The last few years have witnessed a significant trend toward only supporting JavaScript Object Notation (JSON) responses to requests. This means the classic API response format, XML, is being dropped completely by an increasing number of API developers. According to their figures, fully 20% of the APIs that have been released so far this year support only a JSON response format.
Why? For the same reason why SOAP was widely dropped in favor of RESTful requests — simplicity and ease of use. Most users of APIs are using them within a user interface environment, where Javascript rules. So the option to have an API response sent back as a JSON hash has immediate benefits, perhaps the largest of which is not having to parse the XML into a useable array.
The consequences of this seem clear — if you are a UI developer Javascript skills are essential. XML skills? Maybe not so much. Sure, there are still plenty of APIs that return XML, but as ProgrammableWeb.com has discovered, a smaller number of them each year. It may not be long before the vast majority of APIs you want to work with support JSON — any many of them to the exclusion of any other response format.
Thanks to @jafurtado for tweeting notice of the ProgrammableWeb.com post.


JSON is great for client-side implementations because JavaScript handles it so easily.
It’s also great in other languages on the server side. PHP has json_decode(), which makes it way easier to work with (small amounts of) data encoded in JSON than the various XML parsing methods. Most every other language has baked-in JSON support by now as well.
So JavaScript skills are not essential, and it’s definitely not all UI (front end) development.
“XML skills” is sort of nebulous. “JSON skills” would just mean, in context, that a developer can parse JSON in their language of choice to use it in their program. The same is true for XML. Knowing basic XML syntax and the implementation-specific schema can help with debugging, but is not strictly necessary.
That’s what bugs me about all the MARC talk — like XML vs. JSON, it’s much ado about [what should be just] data interchange formats.
Now that JSON is starting to take the lead it will be interesting to see whether others will start to replace their XML driven architecture with JSON.
http://www.liquid-technologies.com/xml-editor.aspx