I need to serialize and deserialize objective-c objects into JSON to store in CouchDB. Do people have any example code for best practice for a general solution? I looked at a few JSON framework and they are stopped at the NSDictionary/NSArray level. i.e. A lot of framework will serialize and deserialize NSDictionary/NSArray into JSON. But I still have to do the work to convert NSDictionary into Objective-C objects.
To make things more complex, my Object A can have reference to an NSArray/NSDictionary of Object Bs.
My question is very similar to this question with addition of the collection requirement.
You may want to try JTObjectMapping. Their description:
It's very small (unlike RestKit) and works great.