Class
OfficeDocumentReadResultJson
OfficeIMO.Reader
JSON serialization helpers for the shared OfficeIMO document read result envelope.
Inheritance
- object
- OfficeDocumentReadResultJson
Methods
public static OfficeDocumentReadResult Deserialize(string json) #Deserializes a current, supported document read result transport payload.
Parameters
- json string
- UTF-16 JSON text containing one complete result envelope.
Returns
OfficeDocumentReadResultExceptions
JsonException– The payload is not valid JSON or cannot be mapped to the transport model.OfficeDocumentReadResultSchemaException– The schema identifier or version is not supported.
public static string Serialize(OfficeDocumentReadResult result, bool indented = false) #Serializes a document read result into the stable OfficeIMO transport shape.
Parameters
- result OfficeIMO.Reader.OfficeDocumentReadResult
- Read result to serialize.
- indented bool = false
- When true, writes indented JSON for diagnostics and fixtures.
Returns
stringpublic static string ToJson(OfficeDocumentReadResult result, bool indented = false) #Serializes a document read result into the stable OfficeIMO transport shape.
Parameters
- result OfficeIMO.Reader.OfficeDocumentReadResult
- Read result to serialize.
- indented bool = false
- When true, writes indented JSON for diagnostics and fixtures.
Returns
string