YamlHelper.ToYaml method
Serializes any PowerShell object to YAML format, with specified serialization options.
public static string ToYaml(object? input, SerializationOptions? options = default)
| parameter | description |
|---|---|
| input | The PowerShell object to serialize. Can be null. |
| options | The serialization options to apply. |
Return Value
A string containing the YAML representation of the input object.
See Also
- enum SerializationOptions
- class YamlHelper
- namespace Kestrun.Utilities.Yaml