-
Create empty text file (New File/Other/Empty) e.g. “example.json”
-
Paste json string into the file.
-
Use these lines to get the data:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"example" ofType:@"json"]; NSData *data = [NSData dataWithContentsOfFile:filePath]; NSArray *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];