Converting Between XML and JSON (O'Reilly)
[Posted June 7, 2006 by cook]
Stefan Goessner
discusses the conversion between XML and
JSON (JavaScript Object Notation)
in an O'Reilly article.
"
More and more web service providers seem to be interested in offering JSON APIs beneath their XML APIs. One considerable advantage of using a JSON API is its ability to provide cross-domain requests while bypassing the restrictive same domain policy of the XmlHttpRequest object. On the client-side, JSON comes with a native language-compliant data structure, with which it performs much better than corresponding DOM calls required for XML processing. Finally, transforming JSON structures to presentational data can be easily achieved with tools such as JSONT."
(
Log in to post comments)