私は com.google.gson.jsonArray を持っている json を解析するために gson を使用しています
JsonObject object = jelement2.getAsJsonObject().getAsJsonObject("fields");
JsonArray jArray = (JsonArray) object.get("entity_facets");
Output of jArray is :
[{"count":4,"entity":"Com","Company":[{"sector":"Communications","ticker":"VZ","entity":"Verizon","type":"BCap","instance":[{"count":1,"entity":"Verizon (VZ, Fortune 500)"}]},{"sector":"Technology","ticker":"AAPL","entity":"Apple","type":"BCap","instance":[{"count":1,"entity":"Apple (AAPL, Fortune 500)"}]},{"sector":"Communications","ticker":"T","entity":"AT&T","type":"BCap","instance":[{"count":1,"entity":"(T, Fortune 500)"},{"count":1,"entity":"AT&T"}]}]}]
今、jArray から Company の下の配列を抽出したい