JsonSerializerSettings Class

Json.NET

Json.NET - Quick Starts & API Documentation JsonSerializerSettings Class
NamespacesNewtonsoft.JsonJsonSerializerSettings
Specifies the settings on a JsonSerializer object.
Declaration Syntax
C# Visual Basic Visual C++
public class JsonSerializerSettings
Public Class JsonSerializerSettings
public ref class JsonSerializerSettings
Members
All Members Constructors Methods Properties



Icon Member Description
JsonSerializerSettings()()()()
Initializes a new instance of the JsonSerializerSettings class.

Binder
Gets or sets the SerializationBinder used by the serializer when resolving type names.

CheckAdditionalContent
Gets a value indicating whether there will be a check for additional content after deserializing an object.

ConstructorHandling
Gets or sets how constructors are used during deserialization.

Context
Gets or sets the StreamingContext used by the serializer when invoking serialization callback methods.

ContractResolver
Gets or sets the contract resolver used by the serializer when serializing .NET objects to JSON and vice versa.

Converters
Gets or sets a collection JsonConverter that will be used during serialization.

Culture
Gets or sets the culture used when reading JSON. Defaults to InvariantCulture.

DateFormatHandling
Get or set how dates are written to JSON text.

DateParseHandling
Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.

DateTimeZoneHandling
Get or set how DateTime time zones are handling during serialization and deserialization.

DefaultValueHandling
Gets or sets how null default are handled during serialization and deserialization.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Error
Gets or sets the error handler called during serialization and deserialization.

Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Formatting
Indicates how JSON text output is formatted.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MaxDepth
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a JsonReaderException.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
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.

NullValueHandling
Gets or sets how null values are handled during serialization and deserialization.

ObjectCreationHandling
Gets or sets how objects are created during deserialization.

PreserveReferencesHandling
Gets or sets how object references are preserved by the serializer.

ReferenceLoopHandling
Gets or sets how reference loops (e.g. a class referencing itself) is handled.

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

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
TypeNameAssemblyFormat
Gets or sets how a type name assembly is written and resolved by the serializer.

TypeNameHandling
Gets or sets how type name writing and reading is handled by the serializer.

Inheritance Hierarchy
Object
JsonSerializerSettings

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)