メインコンテンツまでスキップ

13. Examples (例)

これは JSON オブジェクトです:

{
"Image": {
"Width": 800,
"Height": 600,
"Title": "View from 15th Floor",
"Thumbnail": {
"Url": "http://www.example.com/image/481989943",
"Height": 125,
"Width": 100
},
"Animated" : false,
"IDs": [116, 943, 234, 38793]
}
}

この Image メンバーはオブジェクトであり、その Thumbnail メンバーはオブジェクトで、IDs メンバーは数値の配列です。

これは2つのオブジェクトを含む JSON 配列です:

[
{
"precision": "zip",
"Latitude": 37.7668,
"Longitude": -122.3959,
"Address": "",
"City": "SAN FRANCISCO",
"State": "CA",
"Zip": "94107",
"Country": "US"
},
{
"precision": "zip",
"Latitude": 37.371991,
"Longitude": -122.026020,
"Address": "",
"City": "SUNNYVALE",
"State": "CA",
"Zip": "94085",
"Country": "US"
}
]

以下は、値のみを含む3つの小さな JSON テキストです:

"Hello world!"
42
true