What are the benefits of JSON over XML?

  • JSON supports data types like string, integer, boolean etc.
  • JSON is native data format for JavaScript and therefore it faster for the browser to read and understand.
  • As JSON contains no tags but data and therefore less data to be transferred between client and the server. So, it’s lighter than XML.
  • Easy for humans to read and write.