我有一个像这样的 JSON:-
{
author = {
class = "pocketapptest.Author";
dateCreated = "2013-05-08T00:03:46Z";
firstName = Kurt;
id = 1;
lastName = Vonnegut;
lastUpdated = "2013-05-08T00:03:46Z";
};
class = "pocketapptest.Book";
dateCreated = "2013-05-08T00:03:46Z";
id = 1;
lastUpdated = "2013-05-08T00:03:46Z";
title = "Slaughterhouse Five";
}
我可以访问 dateceated / title 为
NSString* title = [jsondata objectForKey:@"title"];
但我如何存储名字/姓氏等。