JSON File Format - Brief History
The first edition of JSON standard ECMA-404 was published in October 2013 by Ecma International. RFC 7159 became the main reference for JSON’s Internet uses in 2014. In November 2017, ISO/IEC 21778:2017 was published as an international standard. RFC 8259 was published on 13 December 2017 by The Internet Engineering Task Force which is the current version of the Internet Standard STD 90.
JSON File Structure
JSON data is written in key/value pairs. The key and value are separated by a colon(:) in the middle with the key on the left and the value on the right. Different key/value pairs are separated by a comma(,). The key is a string surrounded by double quotation marks for example “name”. The values can be of the following types.
String: Sequence of Unicode characters surrounded by double quotation marks.
Boolean: True or False.
Array: A list of values surrounded by square brackets, for example
Object: A collection of key/value pairs surrounded by curly braces, for example
There is practically no limit on the maximum size of a JSON file. It can be as long as the space required by the contents to be stored.
When it comes to using JSON file format for transferring data over the internet, one needs to be careful about the available resources of computer. If large JSON data is transferred, the transfer will be affected if the client browser has limited memory.
There is no hard limit defined by specification, but you need to be careful not to exhaust resources on your users’ computers, as it will quickly degrade their user experience, and they will be likely to abandon your app.
JSON vs XML
XML is another common and widely used file format for exchange of data over the internet. When it comes to exchange of data between applications, developers have option of using both XML and JSON file formats. However, JSON is adopted as the most convenient way for data exchange between applications over the internet due to the following reasons.
JSON gives a clear and easier to read view of data as compared to XML file formats
JSON reduces the overhead of data transfer over the internet as it has less number of characters to define the same set of data as compared to XML
Modern programming languages provide builtin parsers to parse the JSON response over the web.
What is JSON file used for? JSON file format can be used as an intermediate file format for storing data generated data such as from a submitted form on a website. It is also used as a data format file for any programming language and provides interoperability between different types of data.
Is JSON and XML file same? Not really. JSON differs from XML in that JSON is shorter, can be read and right quickly, can use arrays and it doesn’t use end tag.
Can I convert JSON to CSV? Yes, there are certain online converter apps such as GroupDocs Conversion apps that can convert JSON to CSV.
How to Open a JSON file in Word? You can use online apps such as Aspose.app for Words to [convert JSON file to Word](Convert JSON Format to WORD in Android via Java).
Did you know?
You can become a contributor at FileFormat.com to keep the file format community up to date with your findings. If you have to share anything about JSON or Web file formats, you can post your findings in Web File Format News section for people to learn more form these.