我有一个返回以下查询的查询,这是SOLR的标准输出。
{
Company : "Nokia"
Series : "X"
Products : ["3320", "1100"]
ProductStatus : ["Continued","Discontinued"]
}
我想按以下格式格式化输出
{
Company : "Nokia"
Series : "X"
Products : [{
"name": "3320",
"Status":"Continued"
},
{
"name":"1100",
"Status":"Discontinued"
}]
}
如何实现以上目标?