JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Book> books = new ResponseListImpl<Book>(size, json);
for (int i = 0; i < size; i++) {
JSONObject bookJSONObject = list.getJSONObject(i);
Book book = new BookJSONImpl(bookJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(book, bookJSONObject);
}
books.add(book);
}