-4
我的JSON包含當前和目標項目。以適當的格式構建JSON
目標項目將保持同爲今年餘下時間,目前我重複所有月份
,所以我問專家有沒有更好的辦法?
它工作正常,但我在少JSON思考任何其他方式
{
"DataContainer": {
"profit": [
{
"current": "20",
"target": "19"
},
{
"current": "20",
"target": "19"
},
{
"current": "30",
"target": "19"
},
{
"current": "23",
"target": "19"
},
{
"current": "19",
"target": "19"
},
{
"current": "17",
"target": "19"
}
],
"revenue": [
{
"current": "50",
"target": "45"
},
{
"current": "20",
"target": "45"
},
{
"current": "30",
"target": "45"
},
{
"current": "23",
"target": "45"
},
{
"current": "19",
"target": "45"
},
{
"current": "17",
"target": "45"
}
]
}
}
謝謝你這是工作 – 2014-10-01 10:49:14