Upload with different return types other than JSONObject or JSONArray wasn't working