The purpose of JSON
Use JavaScript based applications, including browser extensions and Web sites
Serialized and structured data transfer network connections using the JSON format
This is primarily used for data transfer between servers and Web applications
Web services and APIs provide common data in JSON format
It can be used with modern programming languages
The characteristics of JSON
Easy to read and write JSON
Lightweight text-based interchange format
Independent language
JSON format Example:
• Name/value pair data representation
• Braces hold objects and each name followed by ":" (colon), name/value pair separation, (comma)
• Brackets hold arrays and values, separated by commas.
{"Book
": [
{
"id": "Language": "
Java",
"edition": "Third",
"author": "Herbert Schildt "
},
{
" id ":" Modified ",
" language ":" C + + ",
" edition ":" Second "
" author ":" E. Balagurusamy "
}]
}
Data types supported by JSON:
Type description
Number in JavaScript double floating-point format
String Double quote Backslash escaped Unicode
Boolean true or False
Ordered sequence of Array values
Value it can be a string, a number, true or False (True/false), null (NULL), etc.
Object unordered collection key value pair
Whitespace can use any of the tokens in a pair
Null empty
The use of the above JSON summary is a small series to share all the content, hope to give you a reference, but also hope that we support the cloud-dwelling community.