I used a lot of enumerators to walk through dictionaries and arrays at different level. It makes future changes to the JSON schema or objective-c object model difficult.
2013-12-16 17:35:59.976 MyProject[41964:70b] *** Terminating app due to uncaught
exception 'NSInvalidArgumentException', reason: '*** +[MyClass<0x100084d80> init]: cannot init a class object.'
and then I tried to convert the json data with this function:
123456
-(voide)convertJSONData:(id)json{NSEnumerator*enumerator=[jsonobjectEnumerator];idanObject;while(anObject=[enumeratornextObject]){// test for anObject class and handle accordingly
It is probably not an efficient way to handle the incoming json data.