Code example for JsonArray

0
    	dbClient.save(map); 
    	 
    	// save json (Gson object) 
    	JsonObject json = new JsonObject();
		json.addProperty("_id", generateUUID());
		json.add("an-array", new JsonArray());
		dbClient.save(json); 
		 
		// save in batch mode 
		dbClient.batch(new Foo()); 
	} 
	 
	@Test 
	public void testBulkDocuments() { 
		System.out.println("------------------------------- Testing Bulk Documents");
		// Bulk - Modify docs 
		List<Object> newDocs = new ArrayList<Object>();
		newDocs.add(new Foo());
		newDocs.add(new JsonObject());
		 
Connect your IDE to all the code out there  Get Codota for Java