What will be the output of the following code?
const data = '{"name":"John","age":30,"city":"New York"}';
const obj = JSON.parse(data);
const json = JSON.stringify(obj, null, 4);
console.log(json);
What will be the output of the following code?
const data = '{"name":"John","age":30,"city":"New York"}';
const obj = JSON.parse(data);
const json = JSON.stringify(obj, null, 4);
console.log(json);