【发布时间】:2016-07-28 13:55:00
【问题描述】:
如果可能的话,如何使用现有的 JS 库(用于 Observables 的 RxJS、Lodash/Underscore/whatever)进行转换(无需复杂的 foreach 循环)
结构如下:
{
"result": [
{
"content": {
"resources": [
{
"prop": [
{
"key": "BAR",
"value": "Bar getting better"
},
{
"key": "FOO",
"value": "Foo is cool"
}
]
}
]
}
}
]
}
容易进入这个吗?
{
"BAR": "Bar getting better",
"FOO": "Foo is cool"
}
【问题讨论】:
标签: javascript json underscore.js lodash data-conversion