adjust api request (JSONObject and JSONArray)