json file formats code example
Example 1: javascript object notation
{
"first_name": "Taylor",
"last_name": "Hawkes",
"age": 31,
"address": {
"street": "954 Kazaam Lane",
"city": "Boulder",
"state": "CO",
"postalCode": "80303"
},
"emails": [
{
"type": "main",
"number": "[email protected]"
},
{
"type": "secondary",
"number": "[email protected]"
}
]
}
Example 2: json full form
JSON stands for JavaScript Object Notation.
It is a lightweight format for storing and transporting data.
It is often used when data is sent from a server to a web page.
It is "self-describing" and easy to understand.