Documentation
Table of Contents

Interface IDocumentFormat

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

Reads one text format, such as JSON or YAML, into a JSON tree with the line of each node. A document's format is chosen by its extension from the formats registered in DocumentFormats: the core registers JSON, and the IntentSharp.Catalog and IntentSharp.Guardrails packages register YAML. Implement it to read another format.

public interface IDocumentFormat
Extension Methods

Properties

Extensions

The extensions the format reads, lower-case and with the dot, such as ".yaml" and ".yml".

Name

The format's name, such as "json" or "yaml". Two formats with the same name are the same format.

Methods

Parse(string)

Parses text into a JSON tree with its line lookups.