SBJson Execptions after parsing (__NSArrayM objectForKey:)

后端 未结 1 666
情深已故
情深已故 2020-12-22 11:42

I\'ve some problems trying to parse Json using SBJson, I did some research and I can\'t find something helpfull...

I followed some blog about how to do it, but I sti

相关标签:
1条回答
  • 2020-12-22 12:27

    You get that error because "book" is an array, not a dictionary. If all the results look like this one, that is "book" only has one outer object in it. You can just change the line defining book to :

    NSDictionary *book = [[ jsonResults objectForKey:@"result"] lastObject];
    
    0 讨论(0)
提交回复
热议问题