Hi.. I used json framework to get data from sever database in to iphone. json arrays shows data in console. My code is:
NSURL *url = [NSURL URLWithString:@"http://xxx.xxx.x.x/fetchsettings.php"]; // Modify this to match your url.
NSString *jsonreturn = [[NSString alloc] initWithContentsOfURL:url]; // Pulls the URL
NSLog(jsonreturn); // Look at the console and you can see what the restults are
NSData *jsonData = [jsonreturn dataUsingEncoding:NSUTF32BigEndianStringEncoding];
NSDictionary * dict =[[CJSONDeserializer deserializer] deserializeAsDictionary:jsonData error:nil];
array is : {"city":"NewYork","mile":"10"}
My problem in dictionary,dict shows 0 keypair values.also i tried to get in array using deserializeAsArray,but no luck.. Help me to get data in dictionary/array. Thanks.