سؤال

I would like to parse a compressed JSON file using NSJSONSerialization's method JSONObjectWithStream:options:error. How can I decompress the file on-the-fly as stream and use it directly in JSONObjectWithStream:options:error?

هل كانت مفيدة؟

المحلول

gzip

NSDataCategory is a bit rough, but it will handle inflating gzipped files.

PK Zip

ZipArchive and SSZipArchive will unzip a zipped archive.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top