> On Mar 24, 2015, at 4:00 AM, Souhail Marghabi <[email protected]> > wrote: > > My issue is how I would parse this document that has an array "traductions" > that has two objects inside it(nested objects I think) that is inside the > "offre" document. My knowledge for couchebase iOS comes from the samples > provided but none address such scenario. Any help would be appreciated.
Create a custom class that implements the JSONEncoding protocol (found in CBLJSON.h). Implement the methods to read and write the class’s properties from an NSDictionary. In your CBLModel subclass declare the property “traductions” as an NSArray. Implement +traductionsItemClass to return your custom class (not an instance, but the class object itself.) —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/4D248138-84EA-414D-A3D8-FD9E32D79C6F%40mooseyard.com. For more options, visit https://groups.google.com/d/optout.
