Does setAdd() supports JsonObject in couchbase

The setAdd() of couchbase is not working as expected, I am not sure if it supports JsonObject. Code snippet is pasted below,

asyncbucket.setAdd(key, doc.content(),MutationOptionBuilder. builder ().createDocument( “true” ))

The above line of code stores the jsonObject into the Couchbase for the first time. but it fails to put the next JsonObject to persis to Couchbase.

Note: The code works fine for String.