Remove unused imports, format code, use JSONObject for JSON request payload rather than building strings.