I'm trying send some params: a NSString and an NSarray.
The NSArray have this format when I print this:
(54,
55)
But when I add this to params into JSONHTTPClient I get this error:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'request parameters can be only of NSString or NSNumber classes.
My code is:
[JSONHTTPClient postJSONFromURLWithString:uploadUrl
params:@{@"idKey":@"689769", @"idFree":myArray}
completion:^(NSDictionary *json, JSONModelError *err)
dispatch_async(dispatch_get_main_queue(), ^{
NSLog(@"complet");
});
}];
How can I send an array into params?