Method FromJson
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
jsonstringThe 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
jsonis null.- FormatException
jsonis not valid JSON, is not a parsed document, or declares a schema version this version cannot read.