jsonの解析後、このように辞書の値を取得します
NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData //1
options:kNilOptions error:&error];
json辞書を印刷した後、以下の出力が得られます
{
Title= "hi";
title2 = "welcome";
FriendlyName = B325;
Id = 1;
MyLocation = "opp";
sliders = (
{
NAme1 = hai;
Name2 = "apple";
Name3 = "world";
Name4 = "happiness";
}
);
Address = "northZone";
Title3 = "hello world";
},
{
title= "hi";
title2 = "welcome";
FriendlyName = B325;
Id = 2;
MyLocation = "opp1";
sliders = (
{
NAme1 = hai;
Name2 = "apple";
Name3 = "world";
Name4 = "happiness";
}
);
Address = "westZone";
Title3 = "hello world";
},
title= "hi";
title2 = "welcome";
FriendlyName = B325;
Id = 3;
MyLocation = "opp";
sliders = (
{
NAme1 = hai;
Name2 = "apple";
Name3 = "world";
Name4 = "happiness";
}
);
Address = "southZone";
Title3 = "hello world";
},
'''''''''etc.,
NSMutableArray *resultArray = [json objectForKey:@"title"];
辞書の文字列をresultarrayに格納したいのですが、上記の手順で実行が止まってしまいました
辞書の値を配列に格納するにはどうすればよいですか?
私を助けてください