We are providing online training of realtime Live project on Asp.Net MVC with Angular and Web API. For more information click here. If you have any query then drop the messase in CONTACT FORM

Wednesday, July 15, 2015

What is JSON

JSON Introduction 


  1. JSON is the 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 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.
Example

{
        "student": [{ 
                       "firstName": "Mithilesh",
                        "lastName": "Kumar" 
                       }, 
                    { 
                   "firstName": "Sanjeev",
                    "lastName": "Kumar" 
                }, {
                   "firstName": "Sonu", 
                   "lastName": "Singh" 
}
] }

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>Mithilesh</firstName>
 <lastName>Kumar</lastName> 
</student>
<student> 
<firstName>Sanjeev</firstName>
 <lastName>Kumar</lastName>
 </student>
 <student> 
<firstName>Sonu</firstName>
 <lastName>Singh</lastName> 
</student>

No comments: