Directory Image
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Privacy Policy.

Basic Information For JSON

Author: Jay Patel
by Jay Patel
Posted: Feb 12, 2022
state software

History

Douglas Crockford at the Yahoo Building (2007)

Json grew out of a need for stateless, real-time server-to-browser communication protocol without using browser plugins such as Flash or Java applets, the dominant methods used in the early 2000s.

A precursor to the JSON libraries was used in a children's digital asset trading game project named Cartoon Orbit at Communities.com (at which State Software's co-founders had all worked previously) for Cartoon Network, which used a browser-side plug-in with a proprietary messaging format to manipulate Dynamic HTML elements (this system is also owned by 3DO). Upon discovery of early Ajax capabilities, digiGroups, Noosh, and others used frames to pass information into the user browsers' visual field without refreshing a Web application's visual context, realizing real-time rich Web applications using only the standard HTTP, HTML, and JavaScript capabilities of Netscape 4.0.5+ and IE 5+.

Crockford first specified and popularized the JSON format. The State Software co-founders agreed to build a system that used standard browser capabilities and provided an abstraction layer for Web developers to create stateful Web applications that had a persistent duplex connection to a Web server by holding two Hypertext Transfer Protocol (HTTP) connections open and recycling them before standard browser time-outs if no further data were exchanged. The co-founders had a round-table discussion and voted whether to call the data format JSML (JavaScript Markup Language) or JSON (JavaScript Object Notation), as well as under what license type to make it available. Chip Morningstar developed the idea for the State Application Framework at State Software.

What is JSON?

JSON is a way to store, persist data in a structure which is easy to read and easy to access. JSON stands for JavaScript Object Notation, which machines can understand and generate. JSON structure provides a human-readable collection of information to explain and understand the logical representation of data.

Let’s get to the JSON structure. { "Actors": [ { "id": "1", "firstName": "Tom", "lastName": "Cruise" }, { "id": "2", "firstName": "James", "lastName": "Bond" } ] }

This example shows the Actors’ data and has two actors. It’s easy to understand along takes less space to store in memory than XML.

Above JSON data consists of an array of Actors and each actor is value in JSON Array. Looks complicated?

Let’s understand all the data types JSON has, to represent the data.

JSON Data Types

  • Number
  • String
  • Boolean
  • Array
  • Object
  • Null

This example uses all the JSON data types.

{ "id": 1, "age": 30, "Name": "James Bond", "Address" :[ { "city":"Los Angels", "country": "USA" }, { "city":"London", "country": "UK" } ], "wife":null, "ishavingmobile":true, "firstmovie" :{ "name":"Dr. No", "releaseyear":1962 } }

I hope you are having an understanding of JSON now. Let me know if you have any questions about JSON in the comment sections free Articles, I am happy to help. You can also play with JSON data at JSON parser.

About the Author

I am from Surat, India. I am an employee at Sridix Technology Company and We provide IT fields projects and Seo.

Rate this Article
Leave a Comment
Author Thumbnail
I Agree:
Comment 
Pictures
Author: Jay Patel

Jay Patel

Member since: Dec 09, 2021
Published articles: 7

Related Articles