私はJSONファイルの構文に関するチュートリアルを読んだことがありますが、私はまだそれを得ているかどうかはまだ分かりません。ここに私のJSONファイルです:2 JSONObjectsがここにあります私のJSONファイルは何から成っていますか?
{
"dataset": [
{
"seriesname": "Item1 Price",
"data": [
{
"value": 4.72
},
{
"value": 2.81
},
{
"value": 6.18
},
{
"value": 5.17
},
{
"value": 2.94
},
{
"value": 3.77
},
{
"value": 1.7
},
{
"value": 6.72
},
{
"value": 4.61
}
]
},
{
"seriesname": "Item2 Price",
"data": [
{
"value": 2.49
},
{
"value": 0.72
},
{
"value": 4.06
},
{
"value": 1.74
},
{
"value": 7.23
},
{
"value": 5.83
},
{
"value": 2.59
},
{
"value": 7.54
},
{
"value": 7.02
}
]
}
],
"categories": [
{
"label": "Jan"
},
{
"label": "Feb"
},
{
"label": "Mar"
},
{
"label": "Apr"
},
{
"label": "May"
},
{
"label": "Jun"
},
{
"label": "Jul"
},
{
"label": "Aug"
},
{
"label": "Sept"
}
]
}
、私が理解から、1は「データセット」で、もう一つは「カテゴリ」です。 "dataset"オブジェクトには2つのJSONObject(Item1 PriceとItem2Price)があり、どちらも複数の値を持つ配列です。 "categories"はいくつかのエントリを持つ配列です。ファイルを誤読していますか?