Мой JSON-ответ выглядит следующим образом:
{
"themes": [
[
"Direction des Routes Secteur de Pithiviers ",
"mairies",
"Morailles 45300 PITHIVIERS LE VIEIL ",
"0238345744",
"48.823042",
"2.365907"
],
[
"Crédit Mutuel Du Centre ",
"banques",
"agence de Pithiviers 33 r Am Gourdon 45300 PITHIVIERS",
"0820834080",
"48.703042",
"2.145907"
]
]
}
Как видите, все ключи неизвестны, у меня нет Key:value
, так как я могу ссылаться на каждое значение.
NSDictionary *allThemesDict=[[request responseString]JSONValue];
NSArray *allThemesValues=[allThemesDict objectForKey:@"themes"];
for (int i=0; i<[allThemesValues count]; i++) {
NSDictionary *currentTheme=[allThemesValues objectAtIndex:i];//here i get the first 6 values, how can i display it?
}