Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在 iOS 中获取 json 对象形式的压缩 json 吗?有什么办法可以转换吗?
如果是gzip压缩的,会自动转换。看看这个线程:
iPhone 和 GZip
基本上,只是:
NSData *data = [NSData dataWithContentsOfURL:URL];