let times = 0; const json = JSON.stringify({name:'VampireAchao',age:21},(key, value) =>{ console.log(++times) console.table({key,value}) if(typeof value === 'object'|| Array.isArray(value)){ return value } if(typeof value !== 'string'){ returnundefined } return value }) console.log(json)
let times = 0; JSON.parse('{"name":"VampireAchao","age":21}',(key,value)=>{ console.log(++times) console.table({key,value}) if(typeof value === 'object'|| Array.isArray(value)){ return value } if(typeof value !== 'string'){ returnundefined } return value })