json在php中的用法 在php中json会默认把关联数组转为对象,代码为: json_decode($json); 如果想把json转化为php数组格式,代码如下: json_decode($json,true);