qq_31675471
2016-08-16 07:49swift 网络链接和 json数据解析
https://api.thinkpage.cn/v3/weather/now.json?key=qc4mshzxtwmicrsa&location=ip&language=zh-Hans&unit=c
这个是天气预报的api
let url = NSURL(string: "https://api.thinkpage.cn/v3/weather/now.json?key=qc4mshzxtwmicrsa&location=ip&language=zh-Hans&unit=cl")
let data = try NSData(contentsOfURL: url!, options: NSDataReadingOptions())
请问接下来的json 数据应该怎么样解析
- 点赞
- 回答
- 收藏
- 复制链接分享
5条回答
为你推荐
- Swift和Go之间的Zlib压缩
- compression
- swift
- zlib
- 1个回答
- swift API SecKeyCreateEncryptedData使用的其他经过身份验证的数据是什么?
- ios
- encryption
- swift
- 1个回答
- Go vs Swift中的UTF8字符串长度和索引
- string
- swift
- utf-8
- 2个回答
- 允许片段未设置的JSON选项
- json
- mysql
- swift
- php
- 1个回答
- PHP没有从Swift接收POST数据
- swift
- php
- 1个回答
换一换