I keep on getting this error. I get the error JSONArray cannot be converted to JSONObject.I have parsed the JSON file which contains array of objects, but still getting this