JSON Object
It is a set of name or value pairs inserted between {} (curly braces). The keys must be strings and should be unique and multiple key and value pairs are separated by a, (comma).
JSON Object Example:
Below is an example of JSON Object.
{
"Geek":{ "name":"Peter", "age":20, "score": 50.05}
}
JSON Data Types
JSON (JavaScript Object Notation) is the most widely used data format for data interchange on the web. JSON is a lightweight text-based, data-interchange format and it is completely language-independent.
Table of Content
- JSON Data Types
- JSON String
- JSON Number
- JSON Boolean
- JSON Null
- JSON Object
- JSON Array