php json 解析有stdClass Object 

mixed json_decode ( string $json [, bool $assoc = false [, int $depth = 512 [, int $options = 0 ]]] )

json

待解码的 json string 格式的字符串。

This function only works with UTF-8 encoded data.

assoc

当该参数为 TRUE 时,将返回 array 而非 object 。

将第二个参数设置为true就可以了

 posted on 2014-07-31 16:05  whlives  阅读(1261)  评论(0编辑  收藏  举报