如何排列复杂的JSON?(PHP)

时间:2019-06-18 14:06:28

标签: php arrays json

这是我的json文件(来自广播电台的api)

{"errorCode":0,"errorMessage":"","response":{"channel_id":"20","channel_facebook_link":null,"channel_twitter_link":null,"type":1,"type_name":"Radio","channel_name":"Channel name","channel_description":"Hit Music","channel_seo_name":"radioname","channel_url":"","channel_logo_small":"urls","channel_logo_medium":"url","channel_logo_big":"urls","channel_color_code":"#F2050F","channel_detail_service_url":"urls","channel_podcast_enabled":true,"channel_charts_enabled":false,"channel_stream_url_alt":null,"channel_stream_url":"urls","timeline":[{"hide_counter":false,"artistTitle":"Pitbull & J. Balvin","songTitle":"Hey Ma","artistVisibleExtra":"Feat. Camila Cabello","songID":2125,"songType":"S","songLyrics":null,"songStatus":"playing","elapsedTime":151,"remainingSeconds":43,"duration":194,"durationText":"03:14","albumCoverIMG":"coverimg","albumCoverIMGSmall":"smallimg"}]}}

我做了很多尝试,但仍然无法得到这部分

[{"hide_counter":false,"artistTitle":"Pitbull & J. Balvin","songTitle":"Hey Ma","artistVisibleExtra":"Feat. Camila Cabello","songID":2125,"songType":"S","songLyrics":null,"songStatus":"playing","elapsedTime":151,"remainingSeconds":43,"duration":194,"durationText":"03:14","albumCoverIMG":"coverimg","albumCoverIMGSmall":"smallimg"}]

0 个答案:

没有答案