XML | JSON |
---|---|
XML contents contains type less data | JSON object c content typed data |
Only Supported type is String | Supports types such as Array, String,Number and Boolean |
Browser support is limited | It supports all browsers including latest |
It is complex to serialize and deserialize in javascript | Easy to serialize and deserialize in javascript |
Parsing and writing requires parser | Easy to read and write with language |
Format is based on schema | Contains Key a nd value pair |
Language supports popular languages | Supports all programming languages |
Comments are supported | COmments not supported |
JSON - XML VS JSON
Difference between XML and JSON and comparison..