JSON vs XML

You are Here:

JSON vs XML

JSONXML
JSON stands for JavaScript Object NotationXML stands for eXtensible Markup Language
JSON is JavaScript basedXML is HTML based
JSON is LightweightXML is Heavyweight
JSON is easy to understandXML is very complex to understand
JSON is data-orientedXML is document-oriented
JSON has objects with a simple "key" → "value" mapping.XML addressing happens on "nodes", which all receive a unique ID via the XML processor.
JSON supports arrayXML doesn't support array
JSON doesn't support commentsXML support comments
JSON supports only text and number data typeXML support many data types such as text, number, images, charts, graphs etc
JSON is sleek, so the data transfer is very fast.XML is verbose, so the data transfer is normally slow.
JSON filename extension is .jsonXML filename extension is .xml

Similarities between JSON and XML

  • Both are open standard.
  • Both are used for transmitting structured data over a network connection.
  • Both are interoperable or language-independent
  • Both supports unicode

Verdict

Clearly, JSON wins in almost all departments.

Reminder

Hi Developers, we almost covered 100% of JSON Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JSON.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author