|JSON is Lightweight||XML is Heavyweight|
|JSON is easy to understand||XML is very complex to understand|
|JSON is data-oriented||XML 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 array||XML doesn't support array|
|JSON doesn't support comments||XML support comments|
|JSON supports only text and number data type||XML 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 .json||XML filename extension is .xml|
Clearly, JSON wins in almost all departments.
This channel is primarily useful for Full Stack Web Developer.