json解析出来为nil ,对一个嵌套json操作,取里面的单独数据。
这是json数据:
```
{
"code": 0,
"data": {
"song": {
"count": 2,
"itemlist": [{
"albummid": "001ZaCQY2OxVMg",
"docid": "4960718353595419009",
"id": "108041208",
"mid": "000lH7Do3X6Aot",
"name": "雪阳",
"singer": "鹿予"
}, {
"albummid": "001ZaCQY2OxVMg",
"docid": "4277524965976373789",
"id": "107195477",
"mid": "0004snbm3ZMeFz",
"name": "雪阳花",
"singer": "林爽"
}],
"name": "单曲",
"order": 0,
"type": 1
}
},
"subcode": 0
}
```
我试过了转结构体 取出来为nil
转各种类型也试过了,也是nil
求方案,怎么取
![QQ截图20180625234923.jpg](https://static.studygolang.com/180625/0ffd4ad3809395d98ff899820747d876.jpg)
很简单的
#10
更多评论