Table of Contents

Method FromJson

Namespace
LMKit.Document.Parsing
Assembly
LM-Kit.NET.dll

FromJson(string)

Reads a document serialized by ToJson(). The document renders as Markdown, HTML and DocLang exactly as the one that was serialized.

public static ParsedDocument FromJson(string json)

Parameters

json string

The JSON text of a parsed document.

Returns

ParsedDocument

The parsed document.

Remarks

Every 1.x version of the schema is accepted. Members the reader does not know are ignored, so a document written by a later 1.x version still reads.

Exceptions

ArgumentNullException

json is null.

FormatException

json is not valid JSON, is not a parsed document, or declares a schema version this version cannot read.

Share