Я получаю массив JSON с сервера UPX и не могу получить значение
мне нужен объект "name" из "lation_data ", но я не могу попасть в" ratio_data "
вот как я это делаю
NSLog(@"All of the arrays: %@", json);
NSDictionary *Allinfo = [json objectForKey:@"response"];//I go into "response"
NSLog(@"All with response array: %@", Allinfo);
NSDictionary *datainfo = [Allinfo objectForKey:@"data"];//i go into "data"
NSLog(@"Data : %@", datainfo);
Но как мне войти в "ratio_data" и получить значение "name"?
response = (
data = (
{
"business_data_rev" = 12;
"contact_set_rev" = 15;
currency = EUR;
"date_added" = "2011-08-31 12:10:59.338664+02";
"date_invoiced" = "2011-08-31 12:10:59.338664+02";
"date_modified" = "2011-08-31 12:11:04.45442+02";
"date_paid" = "2011-08-31 12:10:59.408335+02";
description = "";
id = 104;
name = "Invoice #104";
"person_rev" = 12;
realid = 104;
"relation_data" = {
id = 12;
iscreditor = 0;
isdebitor = 1;
isprivate = 0;
name = "Emre.";
"subaccount_id" = 9;
};
)