JSON stands for JavaScript Object Notation.
JSON is a text-based format used for storing and transmitting data.
JSON is “self-descriptive” and easy to read.
This example is a JSON formatted string.
‘{“name”:”John”, “age”:30, “car”:null}’ |
It defines an object with three properties:
Each property has an associated value.
By parsing the JSON string with a JavaScript program, you can access the data as an object.
let personName = obj.name; let personAge = obj.age; |