JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Insight> insights = new ResponseListImpl<Insight>(size, json);
for (int i = 0; i < size; i++) {
JSONObject insightJSONObject = list.getJSONObject(i);
Insight insight = new InsightJSONImpl(insightJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(insight, insightJSONObject);
}
insights.add(insight);
}