XML vs JSON{Comments Off on XML vs JSON}

The article that I read about was a peer review article called “Improving Data transmission in Web applications via the Translation between XML and JSON.” The article talks about the analysis of the form of two data serializing approaches used in the development of web applications using XML and JSON. The author remarks that both XML and JSON are used widely because of their high efficiency in transmitting data but still they cause certain application development problems.

The article says that when using XML the data is stored in the tag closed strictly with a data indexed by labels. The XML ensures that the serialized data has good security. On the other hand, we have JSON which is a lightweight data exchange format. It results easier for machines to parse and generate. JSON uses text format. XML data structure notation syntax allows the existence of two labels with the same name at the same level.

Author’s example of XML notation

<?xml version=”1.0″ encoding=”UTF-8″?>




Jack Sparrow












Author’s JSON notation comparison example


“contacts”: {

“contact”: {

“name”: “Jack Sparrow”,

“phone”: “123-532-5392”

“work”: “actor”




The author remarks that when JSON object is transmitted it turns into a string and sent as object where as XML form of DOM.

This article connects to our class because it shows how XML and JSON can be very efficient when used but they have to be picked wisely as not all web applications are suitable to be used by both XML and JSON. This article also gives us an insight on how XML and JSON syntax differ from one another. We could see that the way the data is presented is cleaner with JSON which could be one of the factors in making it respond better in web apps.

Guanhua Wang. (2011). Improving Data Transmission in Web Application  visa Translation between XML and JSON. IEEEXLORE, PP.182-185. Retrieved November 18, 2012. http://0-ieeexplore.ieee.org.opac.library.csupomona.edu/stamp/stamp.jsp?tp=&arnumber=5931189