【发布时间】:2020-04-06 21:29:47
【问题描述】:
如何解析以下我只想解析的部分的json。
```
{
"head": {
"StatusValue": 200,
"StatusText": "Success"
},
"body": {
"Data": [
{
"payer_type_id": 1,
"payer_type": "Self Pay"
},
{
"payer_type_id": 2,
"payer_type": "Corporate"
},
{
"payer_type_id": 6,
"payer_type": "Insurance"
}
],
"RecordCount": 3,
"TotalRecords": null
}
}
如何仅解析 Data 键中的数据。
预期结果应采用以下格式
Date = [["payer_type_id": 1,"payer_type": "Self Pay"],["payer_type_id": 2,"payer_type": "Corporate"],["payer_type_id": 6,"payer_type": "Insurance"]]
【问题讨论】:
-
查看我的回答stackoverflow.com/a/59195555/9136962。制作自己的模型并解析
标签: ios json swift parsing url