JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Offer> offers = new ResponseListImpl<Offer>(size, json);
for (int i = 0; i < size; i++) {
JSONObject offerJSONObject = list.getJSONObject(i);
Offer offer = new OfferJSONImpl(offerJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(offer, offerJSONObject);
}
offers.add(offer);
}