编辑代码

const a = '1';
const b = { name: "11", value: "22" };
const c = '{"name":"11","value":"22"}';

console.log(JSON.parse(a), typeof JSON.parse(a), typeof a); // 数字字符串 => 数字

console.log(parseInt(a), typeof parseInt(a), typeof a);

console.log(JSON.stringify(b), typeof JSON.stringify(b), typeof b);

console.log(JSON.parse(c), typeof JSON.parse(c), typeof c);