我正在尝试将 JSON 数组转换为对象格式。
例子:
{
"country": "USA",
"date": "2019-6-30",
"Speaker": [
{
"id": "name",
"value": "Tiger"
},
{
"id": "age",
"value": "35"
},
{
"id": "topic",
"value": ".NET"
}
]
}
我想将其转换为:
{
"country": "USA",
"date": "2019-6-30",
"name": "Tiger",
"age": 35,
"topic": ".NET"
}
我尝试了几种方法,但没有运气。看来我无法获得内部数组的值。请帮忙。