我想在PHP中解析這個JSON。我不知道如何解析數據它:我想解析PHP中的這個JSON
stdClass Object (
[coord] => stdClass Object (
[lon] => 138.93
[lat] => 34.97
)
[weather] => Array (
[0] => stdClass Object (
[id] => 803
[main] => Clouds
[description] => broken clouds
[icon] => 04n
)
)
[base] => stations
[main] => stdClass Object (
[temp] => 290.738
[pressure] => 1026.59
[humidity] => 94
[temp_min] => 290.738
[temp_max] => 290.738
[sea_level] => 1035.92
[grnd_level] => 1026.59)
[wind] =>
stdClass Object (
[speed] => 6.81
[deg] => 225.502)
[clouds] => stdClass Object (
[all] => 56)
[dt] => 1460799951
[sys] => stdClass Object (
[message] => 0.0131
[country] => JP
[sunrise] => 1460751040
[sunset] => 1460798268
)
[id] => 1851632
[name] => Shuzenji
[cod] => 200
)
我不知道任何PHP或JSON,但我可以downvote這:( –
這不是JSON。 –
好吧,那麼如何把主要部分? –