【发布时间】:2017-01-31 10:30:38
【问题描述】:
我有一个这样的对象,
{
"Distrubutor":"DISTRIBUTOR1",
"INCLUDE":"INDIA,United States",
"EXCLUDE":"KARNATAKA-INDIA,CHENNAI-TAMILNADU-INDIA",
"PARENT-ID":""
}
我想通过使用 Main 对象中的 INCLUDE 属性来生成多个对象,有人可以帮我解决这个问题吗
{
"parent_id":"",
"id":"DISTRIBUTOR1",
"permission":"Granted",
"country_code":"INDIA"
}
2.
{
"parent_id":"",
"id":"DISTRIBUTOR1",
"permission":"Granted",
"country_code":"United States"
}
【问题讨论】:
标签: javascript json node.js lodash