Code example for JsonPrimitive

0
	public JsonObject toJson() {
		JsonArray ret = new JsonArray();
		ret.add(IDENTIFIER);
		ret.add(new JsonPrimitive(this.getId()));
		JsonArray hint = new JsonArray();
		hint.add(new JsonPrimitive(this.getNetloc().toString()));
		ret.add(hint);
		return Reference.wrapAsReference(ret);
	} 
	 
} 
Experience pair programming with AI  Get Codota for Java