docs: public static Tokenizer jsonToTokenizer(String json) {
          if (json != null) {
              Map<String, Object> settingsMap = JSONUtils.deserialize(json.getBytes(Charset.forName
                      ("UTF-8")));
  
              if (settingsMap.containsKey(TOKENIZE) && settingsMap.get(TOKENIZE) instanceof String) {
                  // optional arguments
                  String tokenizerArguments = null;
                  if (settingsMap.containsKey(TOKENIZE_ARGS) && settingsMap.get(TOKENIZE_ARGS)
                          instanceof String) {
                      tokenizerArguments = (String) settingsMap.get(TOKENIZE_ARGS);
                  }
                  String tokenizer = (String) settingsMap.get(TOKENIZE);
                  return new Tokenizer(tokenizer, tokenizerArguments);
              }
          }
          return null;
      }