JSON
(JavaScript Object Notation) is a data format for exchanging information between servers and clients. It’s used with JSON.parse()
to convert JSON to an object and JSON.stringify()
to convert an object to JSON.
const jsonString = '{"name":"Alice"}';
const obj = JSON.parse(jsonString);
console.log(obj.name); // Alice