I am implementing SBJSON to fetch the data from web service. My code in "ConnectionDidFinishLoading" is as follows:
NSString *responseString = [[NSString alloc] initWithData:responseData encoding: NSUTF8StringEncoding];
NSLog(@"Response String %@", responseString);
NSDictionary *results = [responseString JSONValue];
NSString *extractUsers = [results objectForKey:@"d"];
NSDictionary *finalResult = [extractUsers JSONValue];
NSLog(@"Final Results : %@",finalResult);
But I got the error msg in my console as follows:
-JSONValue failed. Error trace is: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Unrecognised leading character\" UserInfo=0x686d010 {NSLocalizedDescription=Unrecognised leading character}" )
I have referred several links on stackoverflow and I also use google to find the answer but I am not able to get the solution
If you have solution then share it with me.
Thanx in advance...