List some benefits of JSON over XML?

devquora
devquora

Posted On: Feb 22, 2018

 

  • It is faster and lighter than XML as on the wire data format
  • XML data is typeless while JSON objects are typed
  • JSON types: Number, Array, Boolean, String
  • XML data are all 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

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    JSON Interview Questions

    What is JSON? For what is used for?

    JSON (JavaScript Object Notation) is a data storage and communication format based on key-value pair of JavaScript obje..

    JSON Interview Questions

    How to convert Javascript objects into JSON?

    JSON.stringify(value); is used to convert Javascript objects into JSON.Example Usage: var obj={"website":"Onlineint..

    JSON Interview Questions

    List types Natively supported by JSON?

    JSON supports Objects, Arrays, Primitives (strings, numbers, boolean values (true/false), null) data types...