code: public final ObjectJS toJson(StringifierFactory jsonStringifierFactory) {
  		final ObjectJS pluginJS = new ObjectJS();
  		final Stringifier<String> stringStringifier = jsonStringifierFactory.getStringifier(String.class);
  		pluginJS.setSimpleAttribute("id", getId(), stringStringifier);
  		pluginJS.setSimpleAttribute("label", getLabel(), stringStringifier);
  		pluginJS.setAttribute("resources", HtmlResource.toJson(
  			getResources(),
  			jsonStringifierFactory));
  		return pluginJS;
  	}
docs: Serialize plugin data into a JSON object
  
  @param jsonStringifierFactory Stringifier factory
  @return JSON object representing plugin