Table of Content

JSON introduction



JSON Introduction :

  1. JSON is lightweight syntax to store and interchange text information that can be read by many programming languages.
  2. JSON is supported by many modern browsers.
  3. JSON was developed by Douglas Crockford and presented to the Internet community in 2006.
  4. JSON was formally made part of the ECMAScript standard, on which JavaScript is based, as of the Fifth Edition finalized in April 2010.

What is JSON ?

  1. JSON Stands for : JavaScript Object Notation
  2. JSON is used to store and and exchange text information much like XML
  3. JSON is faster than XML and easier to parse
  4. JSON is lightweight and self descriptive
  5. JSON is language independent though it uses JavaScript
  6. JSON is easy to understand.

Sample JSON Representation :

{
    "student": [{
        "firstName": "Pritesh",
        "lastName": "Taral"
    }, {
        "firstName": "Anna",
        "lastName": "Patil"
    }, {
        "firstName": "Peter",
        "lastName": "Smith"
    }]
}

In the above snippet , We have stored three student records and we can write above Code in XML as below –

<?xml version="1.0" encoding="UTF-8" ?>
<student>
    <firstName>Pritesh</firstName>
    <lastName>Taral</lastName>
</student>
<student>
    <firstName>Anna</firstName>
    <lastName>Patil</lastName>
</student>
<student>
    <firstName>Peter</firstName>
    <lastName>Smith</lastName>
</student>

Recommanded Articles :

  1. Introducing JSON
  2. JSON described in RFC 4627
  3. JSON Wiki
  4. Jackson official website
  5. Gson official website
  6. JSON.simple official website
  7. Review of 5 Java JSON libraries
  8. Jackson vs Gson