* json текст не начался с массива * < /strong> < /p>
Код: Выделить всё
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSDictionary *params = @{@"emails": emailid,
@"password": paswrd,
@"gender": gende,
@"firstname":name1,
@"lastname":firstname1,
@"dateofBirth":dob1,
@"Country":count
};
[manager GET:@"http://37.187.152.236:91/EmployeeSvc.svc/AddEmployee?"
parameters:params
success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"JSON: %@", responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Error: %@", error);
}];
Подробнее здесь: https://stackoverflow.com/questions/250 ... networking