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"];
我想将字典字符串存储到结果数组中,但执行已在上述步骤中停止
我将如何将字典值存储到数组中?
请帮我