{
"name": "2Pac",
"album": "All Eyez on Me",
"track": "All Eyez on Me",
"duration": "5:08",
"trackNo": ""
},
{
"name": "2Pac",
"album": "2Pac Greatest Hits",
"track": "Keep Ya Head Up",
"duration": "4:24",
"trackNo": "1"
},
{
"name": "2Pac",
"album": "2Pac Greatest Hits",
"track": "2 Of Amerikaz Most Wanted",
"duration": "4:07",
"trackNo": "2"
},
{
"name": "50 Cent",
"album": "Get Rich Or Die Tryin%27",
"track": "P.I.M.P.",
"duration": "4:10",
"trackNo": "11"
},
{
"name": "50 Cent",
"album": "Get Rich Or Die Tryin%27",
"track": "Like My Style",
"duration": "3:13",
"trackNo": "12"
},
我有很多以这种方式格式化的json数据,并且正在寻找一种操作数据的方法,这样它只有一个艺术家名称,然后是该艺术家的专辑,然后是每个专辑中的歌曲。 PHP会好的,所以我可以转换东西,任何帮助都会受到赞赏。
答案 0 :(得分:0)
使用这些:
基本上归结为:
我会将练习留给您,但是在这里浏览这些功能和类似问题应该可以帮助您入门。如果您有任何要展示的内容,您可以要求更具体的帮助。