What will be the output of the following code?
const json = '{"name":"John","age":30,"city":"New York"}';
const newObj = JSON.parse(json, (key, value) => {
if (typeof value === "string") {
return value.toUpperCase();
}
return value;
});
console.log(newObj);