• Manual
  • API Documentation
  • Bayat.Json
  • JsonSerializerSettings

    Show / Hide Table of Contents
    • Bayat
      • UnityThread
    • Bayat.Core
      • AddReferenceWindow
      • AddReferenceWindow.Dependency
      • AssetReferenceResolver
      • AssetReferenceResolverEditor
      • BayatEditorStyles
      • CoreAssetPostProcessor
      • EditorApplicationUtility
      • MaterialPropertiesResolver
      • MaterialPropertiesResolverEditor
      • ReferenceCheckerWindow
      • ReferenceResolverMode
      • RuntimeMaterialProperties
      • RuntimeMaterialProperty
      • RuntimeMaterialPropertyType
      • SceneReferenceResolver
      • SceneReferenceResolverEditor
      • UnityEditorInternalException
    • Bayat.Core.EditorWindows
      • AssetReferenceManagerWindow
      • AssetReferenceManagerWindow.Styles
      • DatabaseMigrationWindow
      • DatabaseMigrationWindow.SceneMigrationStatus
      • DatabaseMigrationWindow.Styles
      • EditorWindowExtensions
      • EditorWindowUtility
      • EditorWindowWrapper
      • SceneReferenceManagerWindow
      • SceneReferenceManagerWindow.Styles
      • WindowClose
      • WrappedEditorWindow
    • Bayat.Core.Profiling
      • ProfiledSegment
      • ProfiledSegmentCollection
      • ProfilingScope
      • ProfilingUtility
    • Bayat.Core.Reflection
      • AssemblyExtensions
      • Codebase
      • RuntimeCodebase
      • TypeExtensions
      • TypeUtility
    • Bayat.Core.Text
      • StringExtensions
      • StringUtility
    • Bayat.Core.Utilities
      • ExceptionExtensions
      • GuidToReferenceDictionary
      • SerializableDictionary<TKey, TVal>
    • Bayat.Json
      • ConstructorHandling
      • CreateObjectConverterWindow
      • CreateObjectConverterWindow.Styles
      • DateFormatHandling
      • DateParseHandling
      • DateTimeZoneHandling
      • DefaultValueHandling
      • FloatFormatHandling
      • FloatParseHandling
      • Formatting
      • GameObjectSerializationHandler
      • GameObjectSerializationManagerTreeView
      • GameObjectSerializationManagerTreeView.Styles
      • GameObjectSerializationManagerWindow
      • GameObjectSerializationManagerWindow.Styles
      • IArrayPool<T>
      • IJsonLineInfo
      • JsonArrayAttribute
      • JsonConstructorAttribute
      • JsonContainerAttribute
      • JsonContainerType
      • JsonConvert
      • JsonConverter
      • JsonConverterAttribute
      • JsonConverterCollection
      • JsonDefaultSettingsWindow
      • JsonDefaultSettingsWindow.Styles
      • JsonDictionaryAttribute
      • JsonException
      • JsonExtensionDataAttribute
      • JsonIgnoreAttribute
      • JsonObjectAttribute
      • JsonPosition
      • JsonPropertyAttribute
      • JsonReader
      • JsonReader.State
      • JsonReaderException
      • JsonRequiredAttribute
      • JsonSerializationException
      • JsonSerializer
      • JsonSerializerSettings
      • JsonSerializerSettingsPreset
      • JsonTextReader
      • JsonTextWriter
      • JsonToken
      • JsonWriter
      • JsonWriter.State
      • JsonWriterException
      • MemberSerialization
      • MetadataPropertyHandling
      • MissingMemberHandling
      • NullValueHandling
      • ObjectCreationHandling
      • PreserveReferencesHandling
      • ReadType
      • ReferenceLoopHandling
      • Required
      • StringEscapeHandling
      • TypeNameHandling
      • WriteState
    • Bayat.Json.Bson
      • BsonArray
      • BsonBinary
      • BsonBinaryType
      • BsonBinaryWriter
      • BsonObject
      • BsonObjectId
      • BsonProperty
      • BsonReader
      • BsonRegex
      • BsonString
      • BsonToken
      • BsonType
      • BsonValue
      • BsonWriter
    • Bayat.Json.Converters
      • AnimatorConverter
      • AudioClipConverter
      • BinaryConverter
      • BoundsConverter
      • BsonObjectIdConverter
      • ColliderConverter
      • ColorConverter
      • CustomCreationConverter<T>
      • DateTimeConverterBase
      • DiscriminatedUnionConverter
      • EntityKeyMemberConverter
      • ExpandoObjectConverter
      • GameObjectConverter
      • HashSetConverter
      • IsoDateTimeConverter
      • JavaScriptDateTimeConverter
      • KeyValuePairConverter
      • MaterialConverter
      • MaterialConverter.JsonSerializedMaterialProperty
      • Matrix4x4Converter
      • MeshConverter
      • MeshConverter.SerializedIndices
      • MeshFilterConverter
      • ObjectJsonConverter
      • QuaternionConverter
      • RectConverter
      • RectTransformConverter
      • RegexConverter
      • RendererConverter
      • ResolutionConverter
      • ShaderConverter
      • SpriteConverter
      • StringEnumConverter
      • Texture2DConverter
      • TransformConverter
      • UnityBehaviourConverter
      • UnityComponentConverter
      • UnityMonoBehaviourConverter
      • UnityObjectConverter
      • UriConverter
      • VectorConverter
      • VersionConverter
      • XmlNodeConverter
    • Bayat.Json.Linq
      • CommentHandling
      • Extensions
      • IJEnumerable<T>
      • JArray
      • JConstructor
      • JContainer
      • JEnumerable<T>
      • JObject
      • JProperty
      • JPropertyDescriptor
      • JPropertyKeyedCollection
      • JRaw
      • JsonLoadSettings
      • JsonMergeSettings
      • JToken
      • JTokenEqualityComparer
      • JTokenReader
      • JTokenType
      • JTokenWriter
      • JValue
      • LineInfoHandling
      • MergeArrayHandling
      • MergeNullValueHandling
    • Bayat.Json.Linq.JsonPath
      • ArrayIndexFilter
      • ArrayMultipleIndexFilter
      • ArraySliceFilter
      • BooleanQueryExpression
      • CompositeExpression
      • FieldFilter
      • FieldMultipleFilter
      • JPath
      • PathFilter
      • QueryExpression
      • QueryFilter
      • QueryOperator
      • ScanFilter
    • Bayat.Json.Serialization
      • CachedAttributeGetter<T>
      • CamelCasePropertyNamesContractResolver
      • DefaultContractResolver
      • DefaultContractResolver.EnumerableDictionaryWrapper<TEnumeratorKey, TEnumeratorValue>
      • DefaultContractResolverState
      • DefaultReferenceResolver
      • DefaultSerializationBinder
      • DefaultSerializationBinder.TypeNameKey
      • DiagnosticsTraceWriter
      • ErrorContext
      • ErrorEventArgs
      • ExpressionValueProvider
      • ExtensionDataGetter
      • ExtensionDataSetter
      • IAttributeProvider
      • IContractResolver
      • IReferenceResolver
      • ITraceWriter
      • IValueProvider
      • JsonArrayContract
      • JsonContainerContract
      • JsonContract
      • JsonContractType
      • JsonDictionaryContract
      • JsonDynamicContract
      • JsonFormatterConverter
      • JsonISerializableContract
      • JsonLinqContract
      • JsonObjectContract
      • JsonPrimitiveContract
      • JsonProperty
      • JsonPropertyCollection
      • JsonSerializerInternalBase
      • JsonSerializerProxy
      • JsonSerializerReader
      • JsonSerializerReader.CreatorPropertyContext
      • JsonSerializerReader.PropertyPresence
      • JsonSerializerWriter
      • JsonStringContract
      • JsonTypeReflector
      • MemoryTraceWriter
      • ObjectConstructor<T>
      • OnErrorAttribute
      • ReflectionAttributeProvider
      • ReflectionValueProvider
      • ResolverContractKey
      • SerializationCallback
      • SerializationErrorCallback
      • TraceJsonReader
      • TraceJsonWriter
    • Bayat.Json.Shims
      • PreserveAttribute
    • Bayat.Json.Utilities
      • Base64Encoder
      • BidirectionalDictionary<TFirst, TSecond>
      • BufferUtils
      • CollectionUtils
      • CollectionWrapper<T>
      • ConvertUtils
      • ConvertUtils.ConvertResult
      • ConvertUtils.TypeConvertKey
      • Creator<T>
      • DateTimeParser
      • DateTimeUtils
      • DictionaryWrapper<TKey, TValue>
      • DynamicProxy<T>
      • DynamicProxyMetaObject<T>
      • DynamicUtils
      • DynamicUtils.BinderWrapper
      • EnumUtils
      • EnumValue<T>
      • ExpressionReflectionDelegateFactory
      • FSharpFunction
      • FSharpUtils
      • ImmutableCollectionsUtils
      • ImmutableCollectionsUtils.ImmutableCollectionTypeInfo
      • IWrappedCollection
      • IWrappedDictionary
      • JavaScriptUtils
      • JsonTokenUtils
      • LateBoundReflectionDelegateFactory
      • MathUtils
      • MethodCall<T, TResult>
      • MiscellaneousUtils
      • NoThrowExpressionVisitor
      • NoThrowGetBinderMember
      • NoThrowSetBinderMember
      • ParseResult
      • ParserTimeZone
      • PrimitiveTypeCode
      • PropertyNameTable
      • ReflectionDelegateFactory
      • ReflectionMember
      • ReflectionObject
      • ReflectionUtils
      • StringBuffer
      • StringReference
      • StringReferenceExtensions
      • StringUtils
      • ThreadSafeStore<TKey, TValue>
      • TypeInformation
      • ValidationUtils
    • Bayat.SaveSystem
      • AutoSave
      • AutoSaveManager
      • AutoSaveManager.LoadEvent
      • AutoSaveManager.SaveEvent
      • AutoSaveManagerWindow
      • AutoSaveManagerWindow.Styles
      • LoadEventArgs
      • LoadIntoEventArgs
      • SaveEventArgs
      • SaveSystemAPI
      • SaveSystemDefaultSettingsWindow
      • SaveSystemDefaultSettingsWindow.Styles
      • SaveSystemEditorResources
      • SaveSystemJsonSerializer
      • SaveSystemManager
      • SaveSystemSettings
      • SaveSystemSettingsPreset
      • WelcomeWindow
      • WelcomeWindow.Styles
    • Bayat.SaveSystem.Security
      • ISaveSystemEncryption
      • SaveSystemCryptoStream
      • SaveSystemSymmetricCryptoStream
      • SaveSystemSymmetricEncryption
    • Bayat.SaveSystem.Storage
      • BuiltInConnectionFactory
      • ConnectionStringFactory
      • FileStorageStream
      • IConnectionFactory
      • IStorage
      • IStorageStream
      • LocalDiskStorage
      • PlayerPrefsStorage
      • PlayerPrefsStorageStream
      • StorageBackup
      • StorageBase
      • StorageClearOperationResult
      • StorageConnectionString
      • StorageCopyOperationResult
      • StorageDeleteOperationResult
      • StorageFactory
      • StorageFullException
      • StorageInvalidIdentifierException
      • StorageItemNotFoundException
      • StorageListOptions
      • StorageMetaData
      • StorageMoveOperationResult
      • StorageOperationResult
      • StorageStream

    Class JsonSerializerSettings

    Specifies the settings on a JsonSerializer object.

    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()
    Namespace: Bayat.Json
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public class JsonSerializerSettings

    Constructors

    | Improve this Doc View Source

    JsonSerializerSettings()

    Initializes a new instance of the JsonSerializerSettings class.

    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
    Type Description
    System.Nullable<ConstructorHandling>
    | 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

    _dateFormatHandling

    Declaration
    protected DateFormatHandling? _dateFormatHandling
    Field Value
    Type Description
    System.Nullable<DateFormatHandling>
    | Improve this Doc View Source

    _dateFormatString

    Declaration
    protected string _dateFormatString
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    _dateFormatStringSet

    Declaration
    protected bool _dateFormatStringSet
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    _dateParseHandling

    Declaration
    protected DateParseHandling? _dateParseHandling
    Field Value
    Type Description
    System.Nullable<DateParseHandling>
    | Improve this Doc View Source

    _dateTimeZoneHandling

    Declaration
    protected DateTimeZoneHandling? _dateTimeZoneHandling
    Field Value
    Type Description
    System.Nullable<DateTimeZoneHandling>
    | Improve this Doc View Source

    _defaultValueHandling

    Declaration
    protected DefaultValueHandling? _defaultValueHandling
    Field Value
    Type Description
    System.Nullable<DefaultValueHandling>
    | Improve this Doc View Source

    _floatFormatHandling

    Declaration
    protected FloatFormatHandling? _floatFormatHandling
    Field Value
    Type Description
    System.Nullable<FloatFormatHandling>
    | Improve this Doc View Source

    _floatParseHandling

    Declaration
    protected FloatParseHandling? _floatParseHandling
    Field Value
    Type Description
    System.Nullable<FloatParseHandling>
    | Improve this Doc View Source

    _formatting

    Declaration
    protected Formatting? _formatting
    Field Value
    Type Description
    System.Nullable<Formatting>
    | Improve this Doc View Source

    _maxDepth

    Declaration
    protected int? _maxDepth
    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

    _metadataPropertyHandling

    Declaration
    protected MetadataPropertyHandling? _metadataPropertyHandling
    Field Value
    Type Description
    System.Nullable<MetadataPropertyHandling>
    | Improve this Doc View Source

    _missingMemberHandling

    Declaration
    protected MissingMemberHandling? _missingMemberHandling
    Field Value
    Type Description
    System.Nullable<MissingMemberHandling>
    | Improve this Doc View Source

    _nullValueHandling

    Declaration
    protected NullValueHandling? _nullValueHandling
    Field Value
    Type Description
    System.Nullable<NullValueHandling>
    | Improve this Doc View Source

    _objectCreationHandling

    Declaration
    protected ObjectCreationHandling? _objectCreationHandling
    Field Value
    Type Description
    System.Nullable<ObjectCreationHandling>
    | Improve this Doc View Source

    _preserveReferencesHandling

    Declaration
    protected PreserveReferencesHandling? _preserveReferencesHandling
    Field Value
    Type Description
    System.Nullable<PreserveReferencesHandling>
    | Improve this Doc View Source

    _referenceLoopHandling

    Declaration
    protected ReferenceLoopHandling? _referenceLoopHandling
    Field Value
    Type Description
    System.Nullable<ReferenceLoopHandling>
    | 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
    Type Description
    System.Nullable<StringEscapeHandling>
    | Improve this Doc View Source

    _typeNameAssemblyFormat

    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
    Type Description
    System.Nullable<TypeNameHandling>
    | 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
    Type Description
    ConstructorHandling
    | 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

    DefaultDateFormatHandling

    Declaration
    public const DateFormatHandling DefaultDateFormatHandling = DateFormatHandling.IsoDateFormat
    Field Value
    Type Description
    DateFormatHandling
    | Improve this Doc View Source

    DefaultDateFormatString

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

    DefaultDateTimeZoneHandling

    Declaration
    public const DateTimeZoneHandling DefaultDateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind
    Field Value
    Type Description
    DateTimeZoneHandling
    | Improve this Doc View Source

    DefaultDefaultValueHandling

    Declaration
    public const DefaultValueHandling DefaultDefaultValueHandling = DefaultValueHandling.Include
    Field Value
    Type Description
    DefaultValueHandling
    | Improve this Doc View Source

    DefaultFloatFormatHandling

    Declaration
    public const FloatFormatHandling DefaultFloatFormatHandling = FloatFormatHandling.String
    Field Value
    Type Description
    FloatFormatHandling
    | Improve this Doc View Source

    DefaultFloatParseHandling

    Declaration
    public const FloatParseHandling DefaultFloatParseHandling = FloatParseHandling.Double
    Field Value
    Type Description
    FloatParseHandling
    | Improve this Doc View Source

    DefaultFormatterAssemblyStyle

    Declaration
    public const FormatterAssemblyStyle DefaultFormatterAssemblyStyle = FormatterAssemblyStyle.Simple
    Field Value
    Type Description
    System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
    | Improve this Doc View Source

    DefaultFormatting

    Declaration
    public const Formatting DefaultFormatting = Formatting.None
    Field Value
    Type Description
    Formatting
    | Improve this Doc View Source

    DefaultMetadataPropertyHandling

    Declaration
    public const MetadataPropertyHandling DefaultMetadataPropertyHandling = MetadataPropertyHandling.Default
    Field Value
    Type Description
    MetadataPropertyHandling
    | Improve this Doc View Source

    DefaultMissingMemberHandling

    Declaration
    public const MissingMemberHandling DefaultMissingMemberHandling = MissingMemberHandling.Ignore
    Field Value
    Type Description
    MissingMemberHandling
    | Improve this Doc View Source

    DefaultNullValueHandling

    Declaration
    public const NullValueHandling DefaultNullValueHandling = NullValueHandling.Include
    Field Value
    Type Description
    NullValueHandling
    | Improve this Doc View Source

    DefaultObjectCreationHandling

    Declaration
    public const ObjectCreationHandling DefaultObjectCreationHandling = ObjectCreationHandling.Auto
    Field Value
    Type Description
    ObjectCreationHandling
    | Improve this Doc View Source

    DefaultPreserveReferencesHandling

    Declaration
    public const PreserveReferencesHandling DefaultPreserveReferencesHandling = PreserveReferencesHandling.None
    Field Value
    Type Description
    PreserveReferencesHandling
    | Improve this Doc View Source

    DefaultReferenceLoopHandling

    Declaration
    public const ReferenceLoopHandling DefaultReferenceLoopHandling = ReferenceLoopHandling.Error
    Field Value
    Type Description
    ReferenceLoopHandling
    | 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
    Type Description
    StringEscapeHandling
    | Improve this Doc View Source

    DefaultTypeNameAssemblyFormat

    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
    Type Description
    TypeNameHandling

    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
    Type Description
    ConstructorHandling

    The constructor handling.

    | 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
    Type Description
    IContractResolver

    The contract resolver.

    | 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

    DateFormatHandling

    Get or set how dates are written to JSON text.

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

    DateFormatString

    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
    Type Description
    DateParseHandling
    | 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
    Type Description
    DateTimeZoneHandling
    | 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
    Type Description
    DefaultValueHandling

    The default value handling.

    | 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

    FloatFormatHandling

    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
    Type Description
    FloatFormatHandling
    | 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
    Type Description
    FloatParseHandling
    | Improve this Doc View Source

    Formatting

    Indicates how JSON text output is formatted.

    Declaration
    public Formatting Formatting { get; set; }
    Property Value
    Type Description
    Formatting
    | 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

    MetadataPropertyHandling

    Gets or sets how metadata properties are used during deserialization.

    Declaration
    public MetadataPropertyHandling MetadataPropertyHandling { get; set; }
    Property Value
    Type Description
    MetadataPropertyHandling

    The metadata properties handling.

    | 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
    Type Description
    MissingMemberHandling

    Missing member handling.

    | 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
    Type Description
    NullValueHandling

    Null value handling.

    | Improve this Doc View Source

    ObjectCreationHandling

    Gets or sets how objects are created during deserialization.

    Declaration
    public ObjectCreationHandling ObjectCreationHandling { get; set; }
    Property Value
    Type Description
    ObjectCreationHandling

    The object creation handling.

    | 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
    Type Description
    PreserveReferencesHandling

    The preserve references handling.

    | 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
    Type Description
    ReferenceLoopHandling

    Reference loop handling.

    | Improve this Doc View Source

    ReferenceResolver

    Gets or sets the IReferenceResolver used by the serializer when resolving references.

    Declaration
    [Obsolete("ReferenceResolver property is obsolete. Use the ReferenceResolverProvider property to set the IReferenceResolver: settings.ReferenceResolverProvider = () => resolver")]
    public IReferenceResolver ReferenceResolver { get; set; }
    Property Value
    Type Description
    IReferenceResolver

    The reference resolver.

    | 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
    Type Description
    System.Func<IReferenceResolver>

    A function that creates the IReferenceResolver used by the serializer when resolving references.

    | 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
    Type Description
    StringEscapeHandling
    | 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
    Type Description
    ITraceWriter

    The trace writer.

    | Improve this Doc View Source

    TypeNameAssemblyFormat

    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
    Type Description
    TypeNameHandling

    The type name handling.

    Remarks

    TypeNameHandling should be used with caution when your application deserializes JSON from an external source. Incoming types should be validated with a custom System.Runtime.Serialization.SerializationBinder when deserializing with a value other than TypeNameHandling.None.

    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Constructors
      • JsonSerializerSettings()
    • Fields
      • _checkAdditionalContent
      • _constructorHandling
      • _context
      • _culture
      • _dateFormatHandling
      • _dateFormatString
      • _dateFormatStringSet
      • _dateParseHandling
      • _dateTimeZoneHandling
      • _defaultValueHandling
      • _floatFormatHandling
      • _floatParseHandling
      • _formatting
      • _maxDepth
      • _maxDepthSet
      • _metadataPropertyHandling
      • _missingMemberHandling
      • _nullValueHandling
      • _objectCreationHandling
      • _preserveReferencesHandling
      • _referenceLoopHandling
      • _serializeScriptableObjects
      • _stringEscapeHandling
      • _typeNameAssemblyFormat
      • _typeNameHandling
      • DefaultCheckAdditionalContent
      • DefaultConstructorHandling
      • DefaultContext
      • DefaultCulture
      • DefaultDateFormatHandling
      • DefaultDateFormatString
      • DefaultDateParseHandling
      • DefaultDateTimeZoneHandling
      • DefaultDefaultValueHandling
      • DefaultFloatFormatHandling
      • DefaultFloatParseHandling
      • DefaultFormatterAssemblyStyle
      • DefaultFormatting
      • DefaultMetadataPropertyHandling
      • DefaultMissingMemberHandling
      • DefaultNullValueHandling
      • DefaultObjectCreationHandling
      • DefaultPreserveReferencesHandling
      • DefaultReferenceLoopHandling
      • DefaultSerializeScriptableObjects
      • DefaultStringEscapeHandling
      • DefaultTypeNameAssemblyFormat
      • DefaultTypeNameHandling
    • Properties
      • Binder
      • CheckAdditionalContent
      • ConstructorHandling
      • Context
      • ContractResolver
      • Converters
      • Culture
      • DateFormatHandling
      • DateFormatString
      • DateParseHandling
      • DateTimeZoneHandling
      • DefaultValueHandling
      • EqualityComparer
      • Error
      • FloatFormatHandling
      • FloatParseHandling
      • Formatting
      • MaxDepth
      • MetadataPropertyHandling
      • MissingMemberHandling
      • NullValueHandling
      • ObjectCreationHandling
      • PreserveReferencesHandling
      • ReferenceLoopHandling
      • ReferenceResolver
      • ReferenceResolverProvider
      • SerializeScriptableObjects
      • StringEscapeHandling
      • TraceWriter
      • TypeNameAssemblyFormat
      • TypeNameHandling