Many websites use JSON for data sharing in addition to RSS feeds. For good reason, JSON feeds can be loaded asynchronously more easily than XML / RSS feeds. It is therefore used a lot for asynchronous communication between browser and server, especially as a replacement for XML in some AJAX-type systems.
The history of JSON
The The first official JSON specification is the ECMA-404 standard of 2013.but the official website was launched in 2002. In addition, Yahoo and Google started using it in 2005 / 2006.
How to store JSON items?
JSON vs XML: what is the best data format?
Although XML is still widely used, JSON has gained a lot of popularity. According to Douglas Crockford, this format has indeed several advantages over XML.
In particular, XML is not optimized for data exchange. For good reason, it does not match the data model of most languages.
What are the disadvantages of JSON?
Despite its many advantages, such as its flexibility and conciseness, this data format has several weaknesses. First of all, the absence of a pattern which allows flexibility in terms of data representation also increases the risk of “distorting” the data.
Besides.., the only type of compatible number is the IEEE-754 double-precision floating-point format. It is therefore not possible to take advantage of the more varied and nuanced types of numbers found in many programming languages.
There’s no no date type either. In fact, developers must represent dates as strings of characters. This can lead to problems with format discrepancies. The only alternative is to represent dates as milliseconds since January 1, 1970.
L’lack of feedback also prevents annotating fields. Additional documentation is required, which increases the risk of misunderstandings. Finally, even though its verbosity is less than XML, this data exchange format is not the most concise.