How to save the whole object to couchbase document such as converting it to JSON or reading it back. I am using couchbase.lite(2.5.0)

Using mutableDocument and trying to save a complete Class Object . How to achieve the same. TIA.

I am creating the DB from couchbase session as mentioned in Travel Sample and I can not see the PutProperties method for document.

You can create a MutableDocument with JSON data and calling to save the document. Basically something like this:

MutableDocument doc = new MutableDocument(json);
MutableDocument doc = new MutableDocument(“CUSTOM_DOCUMENT_ID”, json);