Code example for JsonArray

Methods: add

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