code: public JSONObject toJson() throws JSONException {
      JSONObject json = new JSONObject();
  
      for (OperaArgument argument : this) {
        json.put(argument.getArgument(), argument.getValue());
      }
  
      return json;
    }
docs: Converts this instance to its JSON representation.
  
  @return the JSON representation of these settings
  @throws JSONException if an error occurs while encoding these settings as JSON