JSON pros and cons
Some benefits of using JSON relative to XML :
- JSON Fully automated way of de-serializing/serializing JavaScript objects, minimum to no coding. However, Developers have to write JavaScript code to serialize/de-serialize to/from XML.
- Very good support by all browsers. While XML parsers are built-in into all modern browsers, cross-browser XML parsing can be tricky.
- Concise format because of theĀ name/value pair -based approach. While XML Verbose format because of tags and namespaces.
- Supported by many AJAX toolkits and JavaScript libraries. XML is not much supported AJAX toolkit.
There are some disadvantages of using JSON:
- JSON is a newer format so not enough tools to help with authoring & parsing.
- JSON does not have a <[CDATA[]]> feature, so it is not well suited to act as a carrier of sounds or images or other large binary payloads.
- Unlike XML, JSON does not provide any display capabilities because it is not a document markup language. JSON was not even intended for that purpose.
http://myarch.com/json-pros-and-cons