Class JsonSerializerSettings
Inheritance
System.Object
JsonSerializerSettings
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()
Assembly : Bayat.Json.Runtime.dll
Syntax
public class JsonSerializerSettings
Constructors
|
Improve this Doc
View Source
JsonSerializerSettings()
Declaration
public JsonSerializerSettings()
Fields
|
Improve this Doc
View Source
_checkAdditionalContent
Declaration
protected bool? _checkAdditionalContent
Field Value
Type
Description
System.Nullable <System.Boolean >
|
Improve this Doc
View Source
_constructorHandling
Declaration
protected ConstructorHandling? _constructorHandling
Field Value
|
Improve this Doc
View Source
_context
Declaration
protected StreamingContext? _context
Field Value
Type
Description
System.Nullable <System.Runtime.Serialization.StreamingContext >
|
Improve this Doc
View Source
_culture
Declaration
protected CultureInfo _culture
Field Value
Type
Description
System.Globalization.CultureInfo
|
Improve this Doc
View Source
Declaration
protected DateFormatHandling? _dateFormatHandling
Field Value
|
Improve this Doc
View Source
Declaration
protected string _dateFormatString
Field Value
Type
Description
System.String
|
Improve this Doc
View Source
Declaration
protected bool _dateFormatStringSet
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
_dateParseHandling
Declaration
protected DateParseHandling? _dateParseHandling
Field Value
|
Improve this Doc
View Source
_dateTimeZoneHandling
Declaration
protected DateTimeZoneHandling? _dateTimeZoneHandling
Field Value
|
Improve this Doc
View Source
_defaultValueHandling
Declaration
protected DefaultValueHandling? _defaultValueHandling
Field Value
|
Improve this Doc
View Source
Declaration
protected FloatFormatHandling? _floatFormatHandling
Field Value
|
Improve this Doc
View Source
_floatParseHandling
Declaration
protected FloatParseHandling? _floatParseHandling
Field Value
|
Improve this Doc
View Source
Declaration
protected Formatting? _formatting
Field Value
|
Improve this Doc
View Source
_maxDepth
Declaration
Field Value
Type
Description
System.Nullable <System.Int32 >
|
Improve this Doc
View Source
_maxDepthSet
Declaration
protected bool _maxDepthSet
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
Declaration
protected MetadataPropertyHandling? _metadataPropertyHandling
Field Value
|
Improve this Doc
View Source
_missingMemberHandling
Declaration
protected MissingMemberHandling? _missingMemberHandling
Field Value
|
Improve this Doc
View Source
_nullValueHandling
Declaration
protected NullValueHandling? _nullValueHandling
Field Value
|
Improve this Doc
View Source
_objectCreationHandling
Declaration
protected ObjectCreationHandling? _objectCreationHandling
Field Value
|
Improve this Doc
View Source
_preserveReferencesHandling
Declaration
protected PreserveReferencesHandling? _preserveReferencesHandling
Field Value
|
Improve this Doc
View Source
_referenceLoopHandling
Declaration
protected ReferenceLoopHandling? _referenceLoopHandling
Field Value
|
Improve this Doc
View Source
_serializeScriptableObjects
Declaration
protected bool? _serializeScriptableObjects
Field Value
Type
Description
System.Nullable <System.Boolean >
|
Improve this Doc
View Source
_stringEscapeHandling
Declaration
protected StringEscapeHandling? _stringEscapeHandling
Field Value
|
Improve this Doc
View Source
Declaration
protected FormatterAssemblyStyle? _typeNameAssemblyFormat
Field Value
Type
Description
System.Nullable <System.Runtime.Serialization.Formatters.FormatterAssemblyStyle >
|
Improve this Doc
View Source
_typeNameHandling
Declaration
protected TypeNameHandling? _typeNameHandling
Field Value
|
Improve this Doc
View Source
DefaultCheckAdditionalContent
Declaration
public const bool DefaultCheckAdditionalContent = false
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
DefaultConstructorHandling
Declaration
public const ConstructorHandling DefaultConstructorHandling = ConstructorHandling.Default
Field Value
|
Improve this Doc
View Source
DefaultContext
Declaration
public static readonly StreamingContext DefaultContext
Field Value
Type
Description
System.Runtime.Serialization.StreamingContext
|
Improve this Doc
View Source
DefaultCulture
Declaration
public static readonly CultureInfo DefaultCulture
Field Value
Type
Description
System.Globalization.CultureInfo
|
Improve this Doc
View Source
Declaration
public const DateFormatHandling DefaultDateFormatHandling = DateFormatHandling.IsoDateFormat
Field Value
|
Improve this Doc
View Source
Declaration
public const string DefaultDateFormatString = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK"
Field Value
Type
Description
System.String
|
Improve this Doc
View Source
DefaultDateParseHandling
Declaration
public const DateParseHandling DefaultDateParseHandling = DateParseHandling.DateTime
Field Value
|
Improve this Doc
View Source
DefaultDateTimeZoneHandling
Declaration
public const DateTimeZoneHandling DefaultDateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind
Field Value
|
Improve this Doc
View Source
DefaultDefaultValueHandling
Declaration
public const DefaultValueHandling DefaultDefaultValueHandling = DefaultValueHandling.Include
Field Value
|
Improve this Doc
View Source
Declaration
public const FloatFormatHandling DefaultFloatFormatHandling = FloatFormatHandling.String
Field Value
|
Improve this Doc
View Source
DefaultFloatParseHandling
Declaration
public const FloatParseHandling DefaultFloatParseHandling = FloatParseHandling.Double
Field Value
|
Improve this Doc
View Source
Declaration
public const FormatterAssemblyStyle DefaultFormatterAssemblyStyle = FormatterAssemblyStyle.Simple
Field Value
Type
Description
System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
|
Improve this Doc
View Source
Declaration
public const Formatting DefaultFormatting = Formatting.None
Field Value
|
Improve this Doc
View Source
Declaration
public const MetadataPropertyHandling DefaultMetadataPropertyHandling = MetadataPropertyHandling.Default
Field Value
|
Improve this Doc
View Source
DefaultMissingMemberHandling
Declaration
public const MissingMemberHandling DefaultMissingMemberHandling = MissingMemberHandling.Ignore
Field Value
|
Improve this Doc
View Source
DefaultNullValueHandling
Declaration
public const NullValueHandling DefaultNullValueHandling = NullValueHandling.Include
Field Value
|
Improve this Doc
View Source
DefaultObjectCreationHandling
Declaration
public const ObjectCreationHandling DefaultObjectCreationHandling = ObjectCreationHandling.Auto
Field Value
|
Improve this Doc
View Source
DefaultPreserveReferencesHandling
Declaration
public const PreserveReferencesHandling DefaultPreserveReferencesHandling = PreserveReferencesHandling.None
Field Value
|
Improve this Doc
View Source
DefaultReferenceLoopHandling
Declaration
public const ReferenceLoopHandling DefaultReferenceLoopHandling = ReferenceLoopHandling.Error
Field Value
|
Improve this Doc
View Source
DefaultSerializeScriptableObjects
Declaration
public const bool DefaultSerializeScriptableObjects = false
Field Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
DefaultStringEscapeHandling
Declaration
public const StringEscapeHandling DefaultStringEscapeHandling = StringEscapeHandling.Default
Field Value
|
Improve this Doc
View Source
Declaration
public const FormatterAssemblyStyle DefaultTypeNameAssemblyFormat = FormatterAssemblyStyle.Simple
Field Value
Type
Description
System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
|
Improve this Doc
View Source
DefaultTypeNameHandling
Declaration
public const TypeNameHandling DefaultTypeNameHandling = TypeNameHandling.None
Field Value
Properties
|
Improve this Doc
View Source
Binder
Gets or sets the System.Runtime.Serialization.SerializationBinder used by the serializer when resolving type names.
Declaration
public SerializationBinder Binder { get; set; }
Property Value
Type
Description
System.Runtime.Serialization.SerializationBinder
The binder.
|
Improve this Doc
View Source
CheckAdditionalContent
Gets a value indicating whether there will be a check for additional content after deserializing an object.
Declaration
public bool CheckAdditionalContent { get; set; }
Property Value
Type
Description
System.Boolean
true
if there will be a check for additional content after deserializing an object; otherwise, false
.
|
Improve this Doc
View Source
ConstructorHandling
Gets or sets how constructors are used during deserialization.
Declaration
public ConstructorHandling ConstructorHandling { get; set; }
Property Value
|
Improve this Doc
View Source
Context
Gets or sets the System.Runtime.Serialization.StreamingContext used by the serializer when invoking serialization callback methods.
Declaration
public StreamingContext Context { get; set; }
Property Value
Type
Description
System.Runtime.Serialization.StreamingContext
The context.
|
Improve this Doc
View Source
ContractResolver
Gets or sets the contract resolver used by the serializer when
serializing .NET objects to JSON and vice versa.
Declaration
public IContractResolver ContractResolver { get; set; }
Property Value
|
Improve this Doc
View Source
Converters
Gets or sets a JsonConverter collection that will be used during serialization.
Declaration
public IList<JsonConverter> Converters { get; set; }
Property Value
Type
Description
System.Collections.Generic.IList <JsonConverter >
The converters.
|
Improve this Doc
View Source
Culture
Gets or sets the culture used when reading JSON. Defaults to System.Globalization.CultureInfo.InvariantCulture .
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type
Description
System.Globalization.CultureInfo
|
Improve this Doc
View Source
Get or set how dates are written to JSON text.
Declaration
public DateFormatHandling DateFormatHandling { get; set; }
Property Value
|
Improve this Doc
View Source
Get or set how System.DateTime and System.DateTimeOffset values are formatted when writing JSON text, and the expected date format when reading JSON text.
Declaration
public string DateFormatString { get; set; }
Property Value
Type
Description
System.String
|
Improve this Doc
View Source
DateParseHandling
Get or set how date formatted strings, e.g. "/Date(1198908717056)/" and "2012-03-21T05:40Z", are parsed when reading JSON.
Declaration
public DateParseHandling DateParseHandling { get; set; }
Property Value
|
Improve this Doc
View Source
DateTimeZoneHandling
Get or set how System.DateTime time zones are handling during serialization and deserialization.
Declaration
public DateTimeZoneHandling DateTimeZoneHandling { get; set; }
Property Value
|
Improve this Doc
View Source
DefaultValueHandling
Gets or sets how null default are handled during serialization and deserialization.
Declaration
public DefaultValueHandling DefaultValueHandling { get; set; }
Property Value
|
Improve this Doc
View Source
EqualityComparer
Gets or sets the equality comparer used by the serializer when comparing references.
Declaration
public IEqualityComparer EqualityComparer { get; set; }
Property Value
Type
Description
System.Collections.IEqualityComparer
The equality comparer.
|
Improve this Doc
View Source
Error
Gets or sets the error handler called during serialization and deserialization.
Declaration
public EventHandler<ErrorEventArgs> Error { get; set; }
Property Value
Type
Description
System.EventHandler <ErrorEventArgs >
The error handler called during serialization and deserialization.
|
Improve this Doc
View Source
Get or set how special floating point numbers, e.g. System.Double.NaN ,
System.Double.PositiveInfinity and System.Double.NegativeInfinity ,
are written as JSON.
Declaration
public FloatFormatHandling FloatFormatHandling { get; set; }
Property Value
|
Improve this Doc
View Source
FloatParseHandling
Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
Declaration
public FloatParseHandling FloatParseHandling { get; set; }
Property Value
|
Improve this Doc
View Source
Indicates how JSON text output is formatted.
Declaration
public Formatting Formatting { get; set; }
Property Value
|
Improve this Doc
View Source
MaxDepth
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a JsonReaderException .
Declaration
public int? MaxDepth { get; set; }
Property Value
Type
Description
System.Nullable <System.Int32 >
|
Improve this Doc
View Source
Gets or sets how metadata properties are used during deserialization.
Declaration
public MetadataPropertyHandling MetadataPropertyHandling { get; set; }
Property Value
|
Improve this Doc
View Source
MissingMemberHandling
Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
Declaration
public MissingMemberHandling MissingMemberHandling { get; set; }
Property Value
|
Improve this Doc
View Source
NullValueHandling
Gets or sets how null values are handled during serialization and deserialization.
Declaration
public NullValueHandling NullValueHandling { get; set; }
Property Value
|
Improve this Doc
View Source
ObjectCreationHandling
Gets or sets how objects are created during deserialization.
Declaration
public ObjectCreationHandling ObjectCreationHandling { get; set; }
Property Value
|
Improve this Doc
View Source
PreserveReferencesHandling
Gets or sets how object references are preserved by the serializer.
Declaration
public PreserveReferencesHandling PreserveReferencesHandling { get; set; }
Property Value
|
Improve this Doc
View Source
ReferenceLoopHandling
Gets or sets how reference loops (e.g. a class referencing itself) is handled.
Declaration
public ReferenceLoopHandling ReferenceLoopHandling { get; set; }
Property Value
|
Improve this Doc
View Source
ReferenceResolver
Declaration
[Obsolete("ReferenceResolver property is obsolete. Use the ReferenceResolverProvider property to set the IReferenceResolver: settings.ReferenceResolverProvider = () => resolver")]
public IReferenceResolver ReferenceResolver { get; set; }
Property Value
|
Improve this Doc
View Source
ReferenceResolverProvider
Gets or sets a function that creates the IReferenceResolver used by the serializer when resolving references.
Declaration
public Func<IReferenceResolver> ReferenceResolverProvider { get; set; }
Property Value
|
Improve this Doc
View Source
SerializeScriptableObjects
Gets a value indicating whether to serialize ScriptableObjects data or not.
Declaration
public bool SerializeScriptableObjects { get; set; }
Property Value
Type
Description
System.Boolean
|
Improve this Doc
View Source
StringEscapeHandling
Get or set how strings are escaped when writing JSON text.
Declaration
public StringEscapeHandling StringEscapeHandling { get; set; }
Property Value
|
Improve this Doc
View Source
TraceWriter
Gets or sets the ITraceWriter used by the serializer when writing trace messages.
Declaration
public ITraceWriter TraceWriter { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or sets how a type name assembly is written and resolved by the serializer.
Declaration
public FormatterAssemblyStyle TypeNameAssemblyFormat { get; set; }
Property Value
Type
Description
System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
The type name assembly format.
|
Improve this Doc
View Source
TypeNameHandling
Gets or sets how type name writing and reading is handled by the serializer.
Declaration
public TypeNameHandling TypeNameHandling { get; set; }
Property Value
Remarks
Please enable JavaScript to view the comments powered by Disqus.