Class Yaml


  • public class Yaml
    extends Object
    • Constructor Detail

      • Yaml

        public Yaml()
    • Method Detail

      • fromYaml

        public static Object fromYaml​(String yaml)
        Parse the YAML string as a manifold.rt.api.Bindings instance.
        Parameters:
        yaml - A Standard YAML 1.2 formatted string
        Returns:
        A manifold.rt.api.Bindings instance
      • fromYaml

        public static Object fromYaml​(String yaml,
                                      boolean withBigNumbers,
                                      boolean withTokens)
      • toYaml

        public static void toYaml​(Object jsonValue,
                                  StringBuilder target)
        Serializes a JSON value to a YAML 1.2 formatted StringBuilder target with the specified indent of spaces.
        Parameters:
        target - A StringBuilder to write the YAML in