1
我如何通過與PHP下面RAW數據循環,得到這樣的結果:如何遍歷原始JSON數據?
結果:
NAME1 - SONG1
NAME2 - SONG2
NAME3 - SONG3
原始數據:
{"artist":"NAME1","title":"SONG1","album":null,"royaltytrackid":null,"url":null,"image":"test1.jpg","time":1380910069,"localtime":"11:07 AM"},
{"artist":"NAME2","title":"SONG2","album":null,"royaltytrackid":null,"url":null,"image":"test2.jpg","time":1380909866,"localtime":"11:04 AM"},
{"artist":"NAME2","title":"SONG3","album":null,"royaltytrackid":null,"url":null,"image":"test3.jpg","time":1380909864,"localtime":"11:04 AM"}
你的JSON似乎無效。它應該被封裝在'[...]' – Boaz
這是一個問題,如果原始數據是在一個PHP文件中的RAW文本?已經添加了[...] – Stefan