code: public static Node convertToJson(Object source, String label, boolean lenient) {
          if (source instanceof JsonSource) {
              return converter.convertToNode(((JsonSource) source).getJson(), label, lenient);
          } else {
              return converter.convertToNode(source, label, lenient);
          }
      }
docs: Converts object to JSON.
  
  @param source
  @param label  label to be logged in case of error.
  @param lenient lenient parser used for expected values. Allows unquoted keys.
  @return