changed to return a JSONObject instead of a JSONArray because that was helpful for parsing