Class YamlUtils

java.lang.Object
com.kingsrook.qqq.backend.core.utils.YamlUtils

public class YamlUtils extends Object
  • Constructor Details

    • YamlUtils

      public YamlUtils()
  • Method Details

    • toMap

      public static Map<String,Object> toMap(String yaml) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • toYaml

      public static String toYaml(Object object)
    • toYaml

      @Deprecated(since="since toYamlCustomized was added, which uses jackson's newer builder object for customization") public static String toYaml(Object object, Consumer<com.fasterxml.jackson.databind.ObjectMapper> objectMapperCustomizer)
      Deprecated.
    • toYamlCustomized

      public static String toYamlCustomized(Object object, Consumer<com.fasterxml.jackson.dataformat.yaml.YAMLMapper.Builder> yamlMapperCustomizer)