我正在调用一个 API,它以JSON
格式返回一些高级数据。然后将其处理为NSDictionary
类似的;
NSDictionary *results = [NSJSONSerialization JSONObjectWithData:JSONData options:kNilOptions error:&error];
当我记录这个时,我可以得到一个非常复杂的结果,类似于:
{
one = {
oneone = 12345;
onetwo = "Hello";
onethree = "How Are You";
};
two = 42;
three = {
threeone = {
threeoneone = "Name";
threeonetwo = {
threeonetwoone = "100";
threeonetwotwo = "26";
};
etc etc etc
现在我通过调用获得“三”的内容,[results objectForKey:@"three"]
但如何获得“三一二”的值?
我尝试了几件事,但无济于事。