【发布时间】:2017-05-25 18:56:31
【问题描述】:
在从服务器获取 json 时遇到问题,json 的示例如下所示:
[{
"subject": "First Post",
"body": "This is a test post coming from mySQL server",
"user": "user",
"date": "2017-04-30",
"comments": "[]",
"id": 1 }]
我不知道这会制成什么样的物体,坦率地说,如果你能帮助我,我将不胜感激。
【问题讨论】:
-
那是一个快速术语数组中的字典。 developer.apple.com/swift/blog/?id=37
-
@luk2302s 评论和我的回答 here 的组合你会解决这个问题。
-
Convert JSON Into Dicotionary ,,,, 这是你的解决方案stackoverflow.com/questions/30480672/…