+1 vote
in JAVA by
Point where JSON is better then XML

1 Answer

0 votes
by

Below are the 6 main points why JSON is better then XML

JSON is much is faster and lighter than XML as on the wire data format in JSON

JSON objects are typed on another place XML data is typeless

Different JSON types are

 Number

 Array

 Boolean

 String

    XML data are always string

    Data is readily available as JSON object is in your JavaScript

    Fetching values is as simple as reading from an object property in your JavaScript code

...