It’s a minimal data interchange format used in wide range of applications, especially to pass on data between server and web application.
JSON stores data in a human-readable format.
It was first standardized in 2013 as ECMA-404.
It’s supported by major modern programming languages.
Two primary ways you can store data in JSON:
- Key/value pair
JSON is an alternative to XML and AJAX. REST-JSON now considered as a de-facto standard for data interchange between web servers and browsers or mobile apps.
JSON replaces Flash plugins and Java Applets, owing to the need to change the old communication method with a stateless and real-time communication format.
While JSON is preferred format over XML, It has some limitations:
- No schema
- Not suitable for large data sets
- Limited data types
It’s faster in execution, easily readable, and can be written in any programming language.