Ciąg węzła do JSON
const json = '{"result":true, "count":42}';
const obj = JSON.parse(json);
Annoyed Antelope
const json = '{"result":true, "count":42}';
const obj = JSON.parse(json);
Use the JavaScript function JSON.parse() to convert text into a JavaScript object:
var obj = JSON.parse('{ "name":"John", "age":30, "city":"New York"}');
JSON.parse('{"name":"John", "age":30, "city":"New York"}')