Booklet
What is JSON?
What is JSON?
JSON stands for JavaScripts Object Notation...
- It's a lightweight format for storing and transporting data.
- It's often used when data is sent from a server to a webpage.
- it's "self-describing" and easy to understand.
JSON example:
{
"hackers": [
{ "firstName": "elliot"' "lastName": "alderson" },
{ "firstName": "darlene", "lastName": "alderson" },
{ "firstName: "tyrell"' "lestName": "wellick" }
]
}
JSON Syntax Rules:
- Data is in name/value pairs.
- Data is separated by commas.
- Curly brackets hold objects.
- Square brackets hold arrays.
* Note...
The JSON format is syntactically identical to the code for creating JavaScript objects.
Because of the similarity, a JavaScript program can easily convert JSON data in native JavaScript objects.
Now isn't that cool!
Join our tech and design community! @hackuniversity