This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *filePath = [[NSBundle mainBundle] pathForResource:JohnSmith ofType:@"json"]; | |
NSData *data = [NSData dataWithContentsOfFile:filePath]; | |
if (data) { | |
NSString *jsonString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; | |
KCUser *appUser = [[KCUser alloc] init]; | |
NSString* MIMEType = @"application/json"; | |
NSError* error; | |
NSData *data = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; | |
id parsedData = [RKMIMETypeSerialization objectFromData:data MIMEType:MIMEType error:&error]; |