1
下面是輸出的Json數組。我想從這個數組中檢索唯一的名稱和描述。我希望將結果放入HTML頁面的表中。 請幫我一把。如何從JSON數組中檢索特定數據?
(
[columnId] => 258f2200948711e3b4507b78fb18a9a7
[columnName] => To-do
[tasksLimited] =>
[tasks] => Array
(
[0] => stdClass Object
(
[_id] => 5f4d17eeff71cf48f8cf033db78c5755
[name] => test
[description] =>
[color] => yellow
[columnId] => 258f2200948711e3b4507b78fb18a9a7
[totalSecondsSpent] => 0
[totalSecondsEstimate] => 0
)
[1] => stdClass Object
(
[_id] => ed30db48426da335d7b232d2d8c5b4f0
[name] => Write report
[description] =>
[color] => red
[columnId] => 258f2200948711e3b4507b78fb18a9a7
[totalSecondsSpent] => 0
[totalSecondsEstimate] => 0
)
[2] => stdClass Object
(
[_id] => ed30db48426da335d7b232d2d8e51eee
[name] => szxfasdfasdf
[description] =>
[color] => yellow
[columnId] => 258f2200948711e3b4507b78fb18a9a7
[totalSecondsSpent] => 0
[totalSecondsEstimate] => 0
)
)
)
這不是JSON。你可以在這裏找到一個例子(http://json.org/example.html)。 –
然後。你的意思是說它只是一個數組? – user3386765
從哪裏得到這個JSON值? – Lepanto