一 JSON數據格式:
- 樣例
{
"results": [
{
"location": {
"id": "KX0V9HP93GSS",
"name": "Zhengzhou",
"country": "CN",
"path": "Zhengzhou,Zhengzhou,Henan,China",
"timezone": "Asia/Shanghai",
"timezone_offset": "+08:00"
},
"now": {
"text": "Sunny",
"code": "1",
"temperature": "30"
},
"last_update": "2018-08-26T20:05:00+08:00"
}
]
}
- 規則
- 並列的數據之間用逗號(”, “)分隔。
- 映射用冒號(”: “)表示。
- 並列數據的集合(數組)用方括號(“[]”)表示。
- 映射的集合(對象)用大括號(”{}”)表示。