Professional Documents
Culture Documents
03c XML Vs JSON
03c XML Vs JSON
XML vs JSON
Similarities Differences
✘ Self-describing (human- ✘ JSON does not use end tag
readable) ✘ JSON is shorter
✘ Hierarchical ✘ JSON is quicker to read
✘ Can be parsed and used and write
by many programming ✘ JSON can use arrays
languages ✘ XML parsing – XML parser
✘ Both can be fetched by an ✘ JSON parsing – standard
XMLHttpRequest JavaScript function
JSON > XML