First you need to import jsonkit third-party packages
afhttprequestoperationmanager *manager = [afhttprequestoperationmanagermanager];
Nsdictionary *parameter = [nsdictionary dictionarywithobjectsandkeys:@ "13817676763",@ "UPHONE", @ " 123",@ "Ufpwd",@ "0000",@ "Authcode",Nil];
Nsdictionary *Parameters = [nsdictionary dictionarywithobjectsandkeys:[parameter Jsonstring],@ "JSON",Nil];
//Nsmutablearray *array = [[Nsmutablearray alloc] initwithobjects:[nsnumber numberwithint:1],@ "PageCount" , [NSNumber numberwithint:10],@ "pagesize", [NSNumber numberwithint:100],@ "Sumcount", nil];
Nsmutablearray *array = [[Nsmutablearray alloc] initwithobjects:parameter,@ "JSON", nil];
[manager POST:@ "http://121.42.40.105:8888/register.ashx" parameters:parameters Success: ^ (afhttprequestoperation *operation, ID responseobject) {
NSLog (@ "json====:%@", Responseobject);
} Failure: ^ (afhttprequestoperation *operation, Nserror *error) {
NSLog (@ "error====:%@", Error.) description);
NSLog (@ " return value :", operation.responsestring);
}];
Using afnetworking, request parameter json={}