code: public JSONObject toJSON() {
          JSONObject ret = new JSONObject();
          ret.put("url", url);
          if (env != null) {
              ret.put("env", env);
          }
          return ret;
      }
docs: As JSON representation
  
  @return JSON object representing this proxy configuration