JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Poke> pokes = new ResponseListImpl<Poke>(size, json);
for (int i = 0; i < size; i++) {
JSONObject pokeJSONObject = list.getJSONObject(i);
Poke poke = new PokeJSONImpl(pokeJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(poke, pokeJSONObject);
}
pokes.add(poke);
}