Section navigation

Public classSealed JsonMappingOptions

Namespace
Rowles.LeanCorpus.Document.Json
Assembly
Rowles.LeanCorpus.dll

Options controlling how JsonDocumentMapper maps JSON to fields.

public sealed class JsonMappingOptions
Inheritance
JsonMappingOptions

Public property FieldNameSeparator

Separator between nested field name segments. Default: ".".

Public property MaxDepth

Maximum nesting depth to recurse into. Default: 10. Must be non-negative.

Public property StringFieldMaxLength

Maximum length for a JSON string to be mapped as StringField. Longer strings become TextField. Default: MaxValue, so JSON strings are exact-match by default. Must be non-negative. Set to 0 to map every string as TextField.