JavaScript Object Notation
Its a key value pair
its popular light-weight way of transfering data
for example :
Lets try to create a json for Person Object
with name , age , isMarried , gender
Its ket value pair
the key is always String and need to be in quotation
value can be :
String
Number
Boolean
null
array
another json object
This is one json with 5 fields
each key value pair should be separated by comma
{
"name" : "Anna",
"age" : 18 ,
"isMarried" : false ,
"gender" : "female",
"company" : null
}
JSON = JavaScript Object Notation
JSON is an open standard file format and data
interchange format that uses human-readable
text to store and transmit data objects
consisting of attribute–value pairs and arrays.
It is a common data format with diverse uses in
electronic data interchange,including that of
web applications with servers
● It is JavaScript Object Notation (is a minimal, readable format
for structuring data.)
● It is used primarily to transmit data between a server
and web application, as an alternative to XML.
● Basically, a lightweight version of XML
● In Key: Value format
● Key is always in double quotes and value if
string its double quotes and if numbers no quotes
● It is purely based on http protocol, -
so it hits the link on the browser and see the results
|json stands for JavaScript Object Notation
|json is a light weight for storing and transporting data
|json is readable
|it has key : value format like python dictionary
Java Script Object Notation