how to retrieve a json data?
Hello Guys,
I`m trying to retrieve data from a json trough webservice(api). I`ve imported the json framework and also tried too many codes.
that`s what I`m trying now:
NSString *resultStr = [[NSString alloc]initWithString:@"http://api.server.com.br/service/customer.asmx/Get" ];
SBJSON *jsonSerializer = [[SBJSON alloc] init];
NSDictionary *result = (NSDictionary*)[jsonSerializer objectWithString:resultStr];
dataModel.api_url = [[result objectForKey:@"List"] objectForKey:@"Name"];
does anyone have any idea how to get this?
|