The api for trends returns an array of single object. There is the JSONObject for this! why in the world are you using JSONArray?