JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<IdNameEntity> entities = new ResponseListImpl<IdNameEntity>(size, json);
for (int i = 0; i < size; i++) {
JSONObject entityJSONObject = list.getJSONObject(i);
IdNameEntity entity = new IdNameEntityJSONImpl(entityJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(entity, entityJSONObject);
}
entities.add(entity);
}