JSON(JavaScript Object Notation)
In this blog, you will learn JSON(JavaScript Object Notation).
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays (called objects).
JSON is language independent, easy to understand and write, and is a common data format used by modern web applications.
JSON Data
JSON data is made up of key/value pairs, which are similar to JavaScript object properties.
The key and values are separated by a colon:.
As an example,
"name":"gowsi"JSON Object
A JSON object is an unordered set of name/value pairs. It is enclosed in curly braces and contains a comma-separated list of name/value pairs.
{"name": "John", "age": 25}JSON Array
Get Gowshisanthiran’s stories in your inbox
Join Medium for free to get updates from this writer.
A JSON Array is an ordered sequence of values. It is enclosed in square brackets and contains a comma-separated list of values.
[1, 2, 3, 4]JSON String
A JSON string is a sequence of characters enclosed in single or double quotes.
"name":"John"JSON Number
A JSON number is a numeric value that can range from integer to floating-point.
"age": 22JSON Boolean
A JSON boolean is either true or false.
trueJSON Null
A JSON null is a special keyword that indicates no value.
null




