Code example for JsonArray

Methods: get

0
	public CompletedReference(String id) {
		super(id);
	} 
	 
	public CompletedReference(JsonArray refTuple) {
		this(refTuple.get(0).getAsString());
	} 
	 
	@Override 
	public boolean isConsumable() { 
		return false; 
	} 
 
	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()));