JSON offers the same kind of benefits that XML does for exchanging data in a heterogeneous environment, such as the following:
JSON is self-describing. The syntax and hierarchical structure of the JSON strings can in some cases be interpreted by applications that do not already know what data to expect.
JSON is simple text. This fact makes it suitable and safe for transferring across platforms and operating systems that do not readily share more complex document types. As text, JSON can also be readily displayed and edited in simple editors.
JSON is compact. An average JSON string is about two thirds of the size of the same data in XML.
JSON is easy to learn, easy to read, and easy to understand.