I am trying to fetching a JSON file which exist in my xcode resources using this code
JSON
xcode
-(void)readJsonFiles { NSString *str=[[[NSBu
Instead of appending the path, use pathForResource:ofType:, so
pathForResource:ofType:
NSString *str=[[NSBundle mainBundle] pathForResource:@"classes" ofType:@"json"]; NSData *fileData = [NSData dataWithContentsOfFile:str];