Class JsonOptions
Provides some configurability around the basic JSON entities.
Inheritance
Inherited Members
Namespace: Manatee.Json
Assembly: Manatee.Json.dll
Syntax
public static class JsonOptions
Properties
| Improve this Doc View SourceDefaultArrayEquality
Defines a default value for EqualityStandard. The default is SequenceEqual.
Declaration
public static ArrayEquality DefaultArrayEquality { get; set; }
Property Value
Type | Description |
---|---|
ArrayEquality |
DuplicateKeyBehavior
Defines the how duplicate keys are handled for JsonObjects. The default is Throw.
Declaration
public static DuplicateKeyBehavior DuplicateKeyBehavior { get; set; }
Property Value
Type | Description |
---|---|
DuplicateKeyBehavior |
Log
Provides "verbose" level logging during serialization and schema processing. Default is null (no logs generated).
Declaration
public static ILog? Log { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ILog> |
LogCategory
Defines the logging categories that will be generated. Default is All.
Declaration
public static LogCategory LogCategory { get; set; }
Property Value
Type | Description |
---|---|
LogCategory |
PrettyPrintIndent
Determines the indention string to use when calling GetIndentedString(Int32). The default is a single tab.
Declaration
public static string PrettyPrintIndent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RequireIsolatedJsonDuringParse
Determines whether parsing will accept content after the first JSON value is complete. Setting this to true will throw a JsonSyntaxException upon detection of additional content once the first JSON value has completely parsed. The default is false.
Declaration
public static bool RequireIsolatedJsonDuringParse { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ThrowOnIncorrectTypeAccess
Defines whether JsonValue should throw an exception when being accessed by the wrong accessory type (e.g. accessing an array as a boolean). The default is true.
Declaration
public static bool ThrowOnIncorrectTypeAccess { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |