Code example for JsonArray

Methods: get

0
				t.$ref = json.getAsString();
				return t;
			} else if (json.isJsonArray()) {
				g = GsonHelper.gson();
				JsonArray arr = json.getAsJsonArray();
				Type t = g.fromJson(arr.get(1), Type.class);
				return t;
			} else { 
				Type t = g.fromJson(json, Type.class);
				return t;
			} 
		} 
	} 
} 
Experience pair programming with AI  Get Codota for Java