JSON stands for JavaScript Object Notation. It is a text format used to represent structured data in a way that humans and programs can both read.
{
"name": "TypeLand",
"topicCount": 14,
"published": true,
"tags": ["typescript", "coding", "json"]
}
const user = {
name: "Ava",
score: 98,
};
const jsonText = JSON.stringify(user, null, 2);
console.log(jsonText);
const parsedUser = JSON.parse(jsonText);
console.log(parsedUser.name);
JSON.stringify() turns an object into JSON text
JSON.parse() turns JSON text into data your program
can use