Arrays 如何在SWIFT中从JSON数组中获取内部值
我想从JSON数组中获取statusSeverityDescription值,我可以获取第一部分,但无法获取任何内部内容 这是阵列: 我在这里做错了什么。。。。。。statusName没有显示任何内容 是的Arrays 如何在SWIFT中从JSON数组中获取内部值,arrays,json,swift,Arrays,Json,Swift,我想从JSON数组中获取statusSeverityDescription值,我可以获取第一部分,但无法获取任何内部内容 这是阵列: 我在这里做错了什么。。。。。。statusName没有显示任何内容 是的 ... let stationName = object["name"].stringValue let statusName = object["lineStatuses"][0]["statusSeverityDescription"].stringValue ... @用
...
let stationName = object["name"].stringValue
let statusName = object["lineStatuses"][0]["statusSeverityDescription"].stringValue
...
@用户2924961不应同步下载内容。您应该使用NSURLSession异步下载数据。
...
let stationName = object["name"].stringValue
let statusName = object["lineStatuses"][0]["statusSeverityDescription"].stringValue
...