如何访问此JSON对象中的值
我得到了一个JSON对象,如下所示:如何访问此JSON对象中的值,json,Json,我得到了一个JSON对象,如下所示: { [error: User test@test.com already exists] length: 88, name: 'error', severity: 'ERROR', code: 'P0001'} 问题:错误消息似乎是一个数组(它是[]括号中包装的第一项)如何获取该值?这是无效的json。请尝试在www.jsonlint.com上验证它您有JSON的源代码吗?
{ [error: User test@test.com already exists]
length: 88,
name: 'error',
severity: 'ERROR',
code: 'P0001'}
问题:错误消息似乎是一个数组(它是[]括号中包装的第一项)如何获取该值?这是无效的json。请尝试在www.jsonlint.com上验证它您有JSON的源代码吗?