Store JSON in the local folder Nsarray *paths=nssearchpathfordirectoriesindomains (NSDocumentDirectory, Nsuserdomainmask, YES);
NSString *path=[paths objectatindex:0];
NSString *json_path=[path stringbyappendingpathcomponent:@ "Jsonfile.json"];
= = Write file
NSLog (@ "%@", [Jsondata writetofile:json_path atomically:yes]? @ "succeed": @ "Failed");-----------------------Read json/ /==json file path
Nsarray *paths=nssearchpathfordirectoriesindomains (NSDocumentDirectory, Nsuserdomainmask, YES);
NSString *path=[paths objectatindex:0];
NSString *json_path=[path stringbyappendingpathcomponent:@ "Jsonfile.json"];
==json data
NSData *data=[nsdata Datawithcontentsoffile:json_path];
==jsonobject
ID jsonobject=[nsjsonserialization jsonobjectwithdata:data
Options:nsjsonreadingallowfragments
Error:&error]//nslog (@ "%@", jsonobject); print JSON dictionary
iOS Development value JSON data file access