(Using xamarin lite, C# but general couchbase lite question)

Couchbase document.properties is IDictionary<String, Object> properties. 
Objects in business logic layer have different representations of course, 
and include nested members, also arrays etc (not trivial 1 level key-value 
types). 

In order to update a document, I can serialize my objects to JObject  or 
just json string but I don't want to handcraft each type to convert it to 
dictionaries. I dont see anything in API besides IDictionary<String, Object> 
properties.


Is there a way to update/create document by giving it json (and not 
IDictionary)?

Note:
The opposite direction, ie retrieving document properties into json, is ok 
for me because JObject.FromObject(document.properties) is correctly 
handling Couchbase IDictionary<string, object> from coucbhase document and 
so i can correctly deserialize results into my types.

-- 
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/8e597bc5-fbd6-4b92-bd3d-112ee8a97473%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to