WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

JSON Tutorial



JSON
JSON

JSON: JavaScript Object Notation.

JSON is a grammar for putting away and trading data.

JSON is a less demanding to-utilize option to XML.


The following JSON model characterizes a workers object, with a variety of 3 representative records:

JSON Example

{"employees":[
    {"firstName":"John", "lastName":"Doe"},
    {"firstName":"Anna", "lastName":"Smith"},
    {"firstName":"Peter", "lastName":"Jones"}
]}

The following XML model additionally characterizes a workers object with 3 representative records:

XML Example

<employees>
    <employee>
        <firstName>John</firstName> <lastName>Doe</lastName>
    </employee>
    <employee>
        <firstName>Anna</firstName> <lastName>Smith</lastName>
    </employee>
    <employee>
        <firstName>Peter</firstName> <lastName>Jones</lastName>
    </employee>
</employees>

What is JSON?

  • JSON represents JavaScript Object Notation
  • JSON is a lightweight information trade format
  • JSON is language autonomous *
  • JSON is "self-describing" and simple to understand