[Solved] Json value failed in ios [closed]


I fixed this issue by replacing /n with empty string in json string

NSString *json = [[NSString alloc]init];

json = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
json = [json stringByReplacingOccurrencesOfString:@"\n" withString:@""];

// NSLog(@”json %@”,json);
NSArray *issueDetailsAry = [[json JSONValue]objectForKey:@”GetIssues”];

Now i got the output. This issue is because of server side linebreaks.

solved Json value failed in ios [closed]