Code example for JsonArray

Methods: add

0
 
	public static final JsonPrimitive IDENTIFIER = new JsonPrimitive("completed2");
 
	@Override 
	public JsonObject toJson() {
		JsonArray ret = new JsonArray();
		ret.add(IDENTIFIER);
		ret.add(new JsonPrimitive(this.getId()));
		return Reference.wrapAsReference(ret);
	} 
 
} 
Experience pair programming with AI  Get Codota for Java