Code example for JsonPrimitive

0
 
	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);
	} 
	 
} 
Contextual code suggestions in your IDE  Get Codota for Java