任何人都知道如何序列化基于NSObject类的嵌套JSON? 有一个讨论序列化简单的JSON 在这里 ,但它不足以满足复杂的嵌套JSON。 想象一下,这是JSON的结果: { "accounting" : [{ "firstName" : "John", "lastName" : "Doe", "age" : 23 }, { "firstName" : "Mary", "lastName" : "Smith", "age" : 32 } ], "sales" : [{ "firstName" : "Sally", "lastName" : "Green", "age" : 27 }, { "firstName" : "Jim", "lastName" : "Galley", "age" : 41 } […]