Click or drag to resize
Json.NET

Newtonsoft.Json Namespace

 
The Newtonsoft.Json namespace provides classes that are used to implement the core services of the framework.
Classes
  ClassDescription
Public classDefaultJsonNameTable
The default JSON name table implementation.
Public classJsonArrayAttribute
Instructs the JsonSerializer how to serialize the collection.
Public classJsonConstructorAttribute
Instructs the JsonSerializer to use the specified constructor when deserializing that object.
Public classJsonContainerAttribute
Instructs the JsonSerializer how to serialize the object.
Public classCode exampleJsonConvert
Provides methods for converting between .NET types and JSON types.
Public classJsonConverter
Converts an object to and from JSON.
Public classJsonConverterT
Converts an object to and from JSON.
Public classJsonConverterAttribute
Instructs the JsonSerializer to use the specified JsonConverter when serializing the member or class.
Public classJsonConverterCollection
Represents a collection of JsonConverter.
Public classJsonDictionaryAttribute
Instructs the JsonSerializer how to serialize the collection.
Public classJsonException
The exception thrown when an error occurs during JSON serialization or deserialization.
Public classJsonExtensionDataAttribute
Instructs the JsonSerializer to deserialize properties with no matching class member into the specified collection and write values during serialization.
Public classJsonIgnoreAttribute
Instructs the JsonSerializer not to serialize the public field or public read/write property value.
Public classJsonNameTable
Base class for a table of atomized string objects.
Public classJsonObjectAttribute
Instructs the JsonSerializer how to serialize the object.
Public classJsonPropertyAttribute
Instructs the JsonSerializer to always serialize the member with the specified name.
Public classJsonReader
Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
Public classJsonReaderException
The exception thrown when an error occurs while reading JSON text.
Public classJsonRequiredAttribute
Instructs the JsonSerializer to always serialize the member, and to require that the member has a value.
Public classJsonSerializationException
The exception thrown when an error occurs during JSON serialization or deserialization.
Public classJsonSerializer
Serializes and deserializes objects into and from the JSON format. The JsonSerializer enables you to control how objects are encoded into JSON.
Public classJsonSerializerSettings
Specifies the settings on a JsonSerializer object.
Public classJsonTextReader
Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
Public classJsonTextWriter
Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
Public classJsonValidatingReader Obsolete.

Represents a reader that provides JsonSchema validation.

Caution note Caution
JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.
Public classJsonWriter
Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
Public classJsonWriterException
The exception thrown when an error occurs while writing JSON text.
Interfaces
  InterfaceDescription
Public interfaceIArrayPoolT
Provides an interface for using pooled arrays.
Public interfaceIJsonLineInfo
Provides an interface to enable a class to return line and position information.
Enumerations
  EnumerationDescription
Public enumerationConstructorHandling
Specifies how constructors are used when initializing objects during deserialization by the JsonSerializer.
Public enumerationDateFormatHandling
Specifies how dates are formatted when writing JSON text.
Public enumerationDateParseHandling
Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
Public enumerationDateTimeZoneHandling
Specifies how to treat the time value when converting between string and DateTime.
Public enumerationCode exampleDefaultValueHandling
Specifies default value handling options for the JsonSerializer.
Public enumerationFloatFormatHandling
Specifies float format handling options when writing special floating point numbers, e.g. NaN, PositiveInfinity and NegativeInfinity with JsonWriter.
Public enumerationFloatParseHandling
Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
Public enumerationFormatting
Specifies formatting options for the JsonTextWriter.
Protected enumerationJsonReaderState
Specifies the state of the reader.
Public enumerationJsonToken
Specifies the type of JSON token.
Public enumerationMemberSerialization
Specifies the member serialization options for the JsonSerializer.
Public enumerationMetadataPropertyHandling
Specifies metadata property handling options for the JsonSerializer.
Public enumerationMissingMemberHandling
Specifies missing member handling options for the JsonSerializer.
Public enumerationCode exampleNullValueHandling
Specifies null value handling options for the JsonSerializer.
Public enumerationObjectCreationHandling
Specifies how object creation is handled by the JsonSerializer.
Public enumerationCode examplePreserveReferencesHandling
Specifies reference handling options for the JsonSerializer. Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable.
Public enumerationReferenceLoopHandling
Specifies reference loop handling options for the JsonSerializer.
Public enumerationRequired
Indicating whether a property is required.
Public enumerationStringEscapeHandling
Specifies how strings are escaped when writing JSON text.
Public enumerationTypeNameAssemblyFormatHandling
Indicates the method that will be used during deserialization for locating and loading assemblies.
Public enumerationTypeNameHandling
Specifies type name handling options for the JsonSerializer.
Public enumerationWriteState
Specifies the state of the JsonWriter.