The Wayback Machine - https://web.archive.org/web/20201018005410/https://www.geeksforgeeks.org/javascript-json/amp/

JavaScript JSON

What is JSON?
JSON or JavaScript Object Notation is a format for structuring data.

What is it used for?
Like XML, it is one of the way of formatting the data. Such format of data is used by web applications to communicate with each other.

Characteristics of JSON

JSON Syntax Rules
JSON syntax is derived from JavaScript object notation syntax:

Examples:

filter_none

edit
close

play_arrow

link
brightness_4
code

{
    "Avengers": [
  
        {
          "Name" : "Tony stark",
          "also known as" : "Iron man",
          "Abilities" : [ "Genius", "Billionaire",
                        "Playboy", "Philanthropist" ]
        },
  
        {
          "Name" : "Peter parker",
          "also known as" : "Spider man",
          "Abilities" : [ "Spider web", "Spidy sense" ]
        }
    ]
}
chevron_right


Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :