【发布时间】:2015-05-08 14:07:30
【问题描述】:
我的 JSON 响应看起来像这样
{"values":
[
{
"type": "NAME",
"match": "EXACT",
more properties here
},
{
"type": "LASTNAME",
"match": "AMBIG",
more properties here
}
] }
如何将其转换为仅包含类型和匹配属性的 javascript 映射?
例如
{
'NAME' : 'EXACT' ,
'LASTNAME' : 'AMBIG'
}
【问题讨论】:
标签: javascript jquery json node.js