我通过下列方法无法得到
JSON.stringify({
"crmUserId": "CRMc94fe64bd7db473086b9e7f2bea27",
"userName": "Sophie Liang",
"extValues": {}
})
'{"crmUserId":"CRMc94fe64bd7db473086b9e7f2bea27","userName":"Sophie Liang","extValues":{}}'
JSON.stringify(JSON.stringify({
"crmUserId": "CRMc94fe64bd7db473086b9e7f2bea27",
"userName": "Sophie Liang",
"extValues": {}
}))
'"{\\"crmUserId\\":\\"CRMc94fe64bd7db473086b9e7f2bea27\\",\\"userName\\":\\"Sophie Liang\\",\\"extValues\\":{}}"'
const x=JSON.stringify([{"crmUserId": "CRMc94fe64bd7db473086b9e7f2bea27","userName": "Sophie Liang","extValues": {}}])
console.log(x)
输出[{"crmUserId":"CRMc94fe64bd7db473086b9e7f2bea27","userName":"Sophie Liang","extValues":{}}]