SOURCE

let str = '{"name": "vince","age": 24,"friends": ["alisa", "bob"]}'
let person = JSON.parse(str, function(key, value){
  if(key === 'age') {
    return value += 1
  } else {
    return value
  }
})
console.log(person)
console 命令行工具 X clear

                    
>
console