The response is something like this
Array({"ResultSet":{"Query":"xxxx","Result":[]}})
How to parse the string into a NSArray?
The response is something like this
Array({"ResultSet":{"Query":"xxxx","Result":[]}})
How to parse the string into a NSArray?
it should work with NSJSONSerialization, it converts NSData input to all foundation objects (NSArray, NSDictionary):
NSError *error;
NSArray *data = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
if (error) {
//handle error
} else {
NSLog(@"%@", data);
}