> On Nov 14, 2014, at 4:37 AM, [email protected] wrote: > > Why CBJSONEncoder: encodeNestedObject does not know encode NSDate?
Because it only encodes the standard JSON types: null/bool/number/string/array/dictionary. (It's basically a replacement for NSJSONSerialization.) Encoding other types is problematic because you don't get round-trip fidelity: if you encode an NSDate as a string, then it will decode back to an NSString, not an NSDate. —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/61445AC7-3405-4FF1-8974-D88F6A6BCE96%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
