Class JsonSerializer
Namespace: System.Dynamic.ExpandoObject
Assembly: Newtonsoft.Json.dll
Syntax
public class JsonSerializer
Constructors
JsonSerializer()
Declaration
public JsonSerializer ();
Properties
Binder
Declaration
[System.Obsolete("Binder is obsolete. Use SerializationBinder instead.")]
public virtual System.Runtime.Serialization.SerializationBinder Binder { get; set; }
Property Value
SerializationBinder
|
CheckAdditionalContent
ConstructorHandling
Declaration
public virtual Newtonsoft.Json.ConstructorHandling ConstructorHandling { get; set; }
Property Value
ConstructorHandling
|
Context
Declaration
public virtual System.Runtime.Serialization.StreamingContext Context { get; set; }
Property Value
StreamingContext
|
ContractResolver
Declaration
public virtual Newtonsoft.Json.Serialization.IContractResolver ContractResolver { get; set; }
Property Value
IContractResolver
|
Converters
Declaration
public virtual Newtonsoft.Json.JsonConverterCollection Converters { get; }
Property Value
JsonConverterCollection
|
Culture
Declaration
public virtual System.Globalization.CultureInfo Culture { get; set; }
Property Value
CultureInfo
|
DateFormatHandling
Declaration
public virtual Newtonsoft.Json.DateFormatHandling DateFormatHandling { get; set; }
Property Value
DateFormatHandling
|
DateFormatString
DateParseHandling
Declaration
public virtual Newtonsoft.Json.DateParseHandling DateParseHandling { get; set; }
Property Value
DateParseHandling
|
DateTimeZoneHandling
Declaration
public virtual Newtonsoft.Json.DateTimeZoneHandling DateTimeZoneHandling { get; set; }
Property Value
DateTimeZoneHandling
|
DefaultValueHandling
Declaration
public virtual Newtonsoft.Json.DefaultValueHandling DefaultValueHandling { get; set; }
Property Value
DefaultValueHandling
|
EqualityComparer
Declaration
public virtual System.Collections.IEqualityComparer EqualityComparer { get; set; }
Property Value
IEqualityComparer
|
FloatFormatHandling
Declaration
public virtual Newtonsoft.Json.FloatFormatHandling FloatFormatHandling { get; set; }
Property Value
FloatFormatHandling
|
FloatParseHandling
Declaration
public virtual Newtonsoft.Json.FloatParseHandling FloatParseHandling { get; set; }
Property Value
FloatParseHandling
|
Formatting
Declaration
public virtual Newtonsoft.Json.Formatting Formatting { get; set; }
Property Value
Formatting
|
MaxDepth
MetadataPropertyHandling
Declaration
public virtual Newtonsoft.Json.MetadataPropertyHandling MetadataPropertyHandling { get; set; }
Property Value
MetadataPropertyHandling
|
MissingMemberHandling
Declaration
public virtual Newtonsoft.Json.MissingMemberHandling MissingMemberHandling { get; set; }
Property Value
MissingMemberHandling
|
NullValueHandling
Declaration
public virtual Newtonsoft.Json.NullValueHandling NullValueHandling { get; set; }
Property Value
NullValueHandling
|
ObjectCreationHandling
Declaration
public virtual Newtonsoft.Json.ObjectCreationHandling ObjectCreationHandling { get; set; }
Property Value
ObjectCreationHandling
|
PreserveReferencesHandling
Declaration
public virtual Newtonsoft.Json.PreserveReferencesHandling PreserveReferencesHandling { get; set; }
Property Value
PreserveReferencesHandling
|
ReferenceLoopHandling
Declaration
public virtual Newtonsoft.Json.ReferenceLoopHandling ReferenceLoopHandling { get; set; }
Property Value
ReferenceLoopHandling
|
ReferenceResolver
Declaration
public virtual Newtonsoft.Json.Serialization.IReferenceResolver ReferenceResolver { get; set; }
Property Value
IReferenceResolver
|
SerializationBinder
Declaration
public virtual Newtonsoft.Json.Serialization.ISerializationBinder SerializationBinder { get; set; }
Property Value
ISerializationBinder
|
StringEscapeHandling
Declaration
public virtual Newtonsoft.Json.StringEscapeHandling StringEscapeHandling { get; set; }
Property Value
StringEscapeHandling
|
TraceWriter
Declaration
public virtual Newtonsoft.Json.Serialization.ITraceWriter TraceWriter { get; set; }
Property Value
ITraceWriter
|
TypeNameAssemblyFormat
Declaration
[System.Obsolete("TypeNameAssemblyFormat is obsolete. Use TypeNameAssemblyFormatHandling instead.")]
public virtual System.Runtime.Serialization.Formatters.FormatterAssemblyStyle TypeNameAssemblyFormat { get; set; }
Property Value
FormatterAssemblyStyle
|
TypeNameAssemblyFormatHandling
Declaration
public virtual Newtonsoft.Json.TypeNameAssemblyFormatHandling TypeNameAssemblyFormatHandling { get; set; }
Property Value
TypeNameAssemblyFormatHandling
|
TypeNameHandling
Declaration
public virtual Newtonsoft.Json.TypeNameHandling TypeNameHandling { get; set; }
Property Value
TypeNameHandling
|
Methods
Create()
Create(JsonSerializerSettings)
Declaration
public static Newtonsoft.Json.JsonSerializer Create (Newtonsoft.Json.JsonSerializerSettings settings);
Parameters
JsonSerializerSettings
settings
|
Returns
JsonSerializer
|
CreateDefault(JsonSerializerSettings)
Declaration
public static Newtonsoft.Json.JsonSerializer CreateDefault (Newtonsoft.Json.JsonSerializerSettings settings);
Parameters
JsonSerializerSettings
settings
|
Returns
JsonSerializer
|
CreateDefault()
Deserialize(JsonReader)
Declaration
public object Deserialize (Newtonsoft.Json.JsonReader reader);
Parameters
JsonReader
reader
|
Returns
Object
|
Deserialize(JsonReader, Type)
Declaration
public object Deserialize (Newtonsoft.Json.JsonReader reader, Type objectType);
Parameters
JsonReader
reader
|
Type
objectType
|
Returns
Object
|
Deserialize(TextReader, Type)
Declaration
public object Deserialize (System.IO.TextReader reader, Type objectType);
Parameters
TextReader
reader
|
Type
objectType
|
Returns
Object
|
Deserialize<T>(JsonReader)
Declaration
public T Deserialize<T> (Newtonsoft.Json.JsonReader reader);
Parameters
JsonReader
reader
|
Returns
T
|
Type Parameters
T
|
Populate(JsonReader, Object)
Declaration
public void Populate (Newtonsoft.Json.JsonReader reader, object target);
Parameters
JsonReader
reader
|
Object
target
|
Populate(TextReader, Object)
Declaration
public void Populate (System.IO.TextReader reader, object target);
Parameters
TextReader
reader
|
Object
target
|
Serialize(JsonWriter, Object)
Declaration
public void Serialize (Newtonsoft.Json.JsonWriter jsonWriter, object value);
Parameters
JsonWriter
jsonWriter
|
Object
value
|
Serialize(TextWriter, Object)
Declaration
public void Serialize (System.IO.TextWriter textWriter, object value);
Parameters
TextWriter
textWriter
|
Object
value
|
Serialize(JsonWriter, Object, Type)
Declaration
public void Serialize (Newtonsoft.Json.JsonWriter jsonWriter, object value, Type objectType);
Parameters
JsonWriter
jsonWriter
|
Object
value
|
Type
objectType
|
Serialize(TextWriter, Object, Type)
Declaration
public void Serialize (System.IO.TextWriter textWriter, object value, Type objectType);
Parameters
TextWriter
textWriter
|
Object
value
|
Type
objectType
|
Events
Error
Declaration
public virtual event EventHandler<Newtonsoft.Json.Serialization.ErrorEventArgs> Error;