Code example for JsonArray

Methods: get

0
			e.printStackTrace();
		} 
		return null; 
	} 
	public static JsonObject getChild(JsonArray jsonArray, int i) {
		JsonObject child = jsonArray.get(i).getAsJsonObject().get("data").getAsJsonObject();
		return child;
	} 
 
	public static JsonArray getArray(JsonElement je) {
		JsonArray jsonArray = je.getAsJsonObject().get("data").getAsJsonObject().get("children").getAsJsonArray();
		return jsonArray;
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java