JSONObject json = res.asJSONObject();
ResponseList<Trends> trends;
try {
Date asOf = z_T4JInternalParseUtil.parseTrendsDate(json.getString("as_of"));
JSONObject trendsJson = json.getJSONObject("trends");
Location location = extractLocation(json, storeJSON);
trends = new ResponseListImpl<Trends>(trendsJson.length(), res);
Iterator ite = trendsJson.keys();
while (ite.hasNext()) {
String key = (String) ite.next();
JSONArray array = trendsJson.getJSONArray(key);