How to store a JSON file in to CouchBase server by using java as client?



Basically I want to store one JSON file which contains json data into couch base server by using java clinet?
Some one can help me out in this regard.

Thanks in advance


I think you can just read file content into the string and pass to to set() method. The example below taken from README file in the repository:

List baseList = Arrays.asList(

CouchbaseClient client = new CouchbaseClient(baseList, "default", "");

OperationFuture setOp = client.set("key", "{\"name\":\"Couchbase\"}");