JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Account> accounts = new ResponseListImpl<Account>(size, json);
for (int i = 0; i < size; i++) {
JSONObject accountJSONObject = list.getJSONObject(i);
Account account = new AccountJSONImpl(accountJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(account, accountJSONObject);
}
accounts.add(account);
}