title: Serialize and Deserialize Objective-C objects into JSON
body: <p>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.</p>
  
  <p>To make things more complex, my Object A can have reference to an NSArray/NSDictionary of Object Bs.</p>
  
  <p>My question is very similar to this question with addition of the collection requirement.</p>
  
  <p><a href="https://stackoverflow.com/questions/830673/instantiating-custom-class-from-nsdictionary/7171878#7171878">Instantiating Custom Class from NSDictionary</a></p>