的JSONArray我想分析该字符串一个JSONObject,它包含一个JSONObjects解析字符串一个JSONObject,它包含一个JSONObjects
Array
(
[Assignments] => Array
(
[0] => Array
(
[ass_name] => Test123
[class_id] => 2
[date_assigned] => 2017-08-23
[done] => false
[due] => 2017-08-23 13:34:54
[id] => 10
[weight] => 65
)
)
)
的JSONArray我尝试使用
$json = json_decode($testing,true);
echo $json;
其中$测试是我的整个字符串,但$ json回声没有。
你的字符串已经是你发布的数组对象,那显然'json_decode'不起作用。 – Nidhi
那么..什么工作? –
这不是json,是吗? –