我从图形 api 中得到以下响应
{
"data": [
{
"name": "Mohamed Galib",
"id": "502008940"
},
{
"name": "Mebin Joseph",
"id": "503453614"
},
{
"name": "Rohith Raveendranath",
"id": "507482441"
}
],
"paging": {
"next": "https://some_url"
}
}
我有一个结构如下
type Item struct {
Name, Id string
}
我想解析响应并获得一个 Item 数组,我该怎么做?
相关分类