My iPad app needs to parse a 10 MB JSON file and save its contents in Core Data.
Would you recommend using NSJSONSerialization
considering the large file size and memory usage or would you rather choose a stream based JSON parser (which stream based parser would you recommend in this case)? By the way: The file has been created with NSJSONSerialization
by another iOS app.
Thank you!
I'd recommend both, because NSJSONSerialization
has the method JSONObjectWithStream:options:error:
.
You could instead use this JSON parsing framework.