Skip to content

Corvus.Text.Json.Yaml Namespace

YAML 1.2 to JSON conversion with full Corvus document model integration. Convert between YAML and JSON with schema-mode support, anchor/alias resolution, and multi-document streams, using the same pooled-memory JsonElement model as the rest of the library.

This package (Corvus.Text.Json.Yaml) provides the full integration with the Corvus type system. For a lighter alternative that depends only on System.Text.Json, see the Corvus.Yaml.SystemTextJson package.

Type Kind Description
DuplicateKeyBehavior enum Specifies the behavior when duplicate mapping keys are encountered.
Utf8YamlWriter struct A high-performance, low-allocation ref struct that writes YAML content to an IBufferWriter or...
YamlCollectionStyle enum Specifies the serialization style for YAML mappings and sequences.
YamlDocument class Provides methods for parsing YAML content and converting it to ParsedJsonDocument instances or JSON strings.
YamlDocumentMode enum Specifies how multi-document YAML streams are handled.
YamlEvent struct Represents a single YAML parse event with zero-copy access to the underlying UTF-8 data.
YamlEventCallback delegate A callback delegate invoked for each YAML parse event during EnumerateEvents.
YamlEventType enum The type of a YAML parse event.
YamlException class Exception thrown when YAML parsing or conversion fails.
YamlReaderOptions struct Options for configuring the YAML to JSON converter.
YamlScalarStyle enum The style of a YAML scalar value.
YamlSchema enum Specifies the YAML schema used for tag resolution and scalar type coercion.
YamlWriterOptions struct Options for configuring the YAML writer.

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue