Show / Hide Table of Contents

Class JsonOptions

Provides some configurability around the basic JSON entities.

Inheritance
System.Object
JsonOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Manatee.Json
Assembly: Manatee.Json.dll
Syntax
public static class JsonOptions

Properties

| Improve this Doc View Source

DefaultArrayEquality

Defines a default value for EqualityStandard. The default is SequenceEqual.

Declaration
public static ArrayEquality DefaultArrayEquality { get; set; }
Property Value
Type Description
ArrayEquality
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

LogCategory

Defines the logging categories that will be generated. Default is All.

Declaration
public static LogCategory LogCategory { get; set; }
Property Value
Type Description
LogCategory
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX