JsonConvert Class

Json.NET

Json.NET - Quick Starts & API Documentation JsonConvert Class
NamespacesNewtonsoft.JsonJsonConvert
Provides methods for converting between common language runtime types and JSON types.
Declaration Syntax
C# Visual Basic Visual C++
public static class JsonConvert
Public NotInheritable Class JsonConvert
public ref class JsonConvert abstract sealed
Members
All Members Methods Fields



Icon Member Description
DeserializeAnonymousType<(Of <<'(T>)>>)(String, T)
Deserializes the JSON to the given anonymous type.

DeserializeObject(String)
Deserializes the JSON to a .NET object.

DeserializeObject(String, JsonSerializerSettings)
Deserializes the JSON to a .NET object.

DeserializeObject(String, Type)
Deserializes the JSON to the specified .NET type.

DeserializeObject<(Of <<'(T>)>>)(String)
Deserializes the JSON to the specified .NET type.

DeserializeObject<(Of <<'(T>)>>)(String, array<JsonConverter>[]()[][])
Deserializes the JSON to the specified .NET type.

DeserializeObject<(Of <<'(T>)>>)(String, JsonSerializerSettings)
Deserializes the JSON to the specified .NET type.

DeserializeObject(String, Type, array<JsonConverter>[]()[][])
Deserializes the JSON to the specified .NET type.

DeserializeObject(String, Type, JsonSerializerSettings)
Deserializes the JSON to the specified .NET type.

DeserializeObjectAsync<(Of <<'(T>)>>)(Void)
DeserializeObjectAsync<(Of <<'(T>)>>)(Void, T)
DeserializeObjectAsync(Void)
DeserializeObjectAsync(Void, Object, String)
DeserializeXmlNode(String)
Deserializes the XmlNode from a JSON string.

DeserializeXmlNode(String, String)
Deserializes the XmlNode from a JSON string nested in a root elment.

DeserializeXmlNode(String, String, Boolean)
Deserializes the XmlNode from a JSON string nested in a root elment.

DeserializeXNode(String)
Deserializes the XNode from a JSON string.

DeserializeXNode(String, String)
Deserializes the XNode from a JSON string nested in a root elment.

DeserializeXNode(String, String, Boolean)
Deserializes the XNode from a JSON string nested in a root elment.

False
Represents JavaScript's boolean value false as a string. This field is read-only.

NaN
Represents JavaScript's NaN as a string. This field is read-only.

NegativeInfinity
Represents JavaScript's negative infinity as a string. This field is read-only.

Null
Represents JavaScript's null as a string. This field is read-only.

PopulateObject(String, Object)
Populates the object with values from the JSON string.

PopulateObject(String, Object, JsonSerializerSettings)
Populates the object with values from the JSON string.

PopulateObjectAsync(String, Object, JsonSerializerSettings)
Asynchronously populates the object with values from the JSON string.

PositiveInfinity
Represents JavaScript's positive infinity as a string. This field is read-only.

SerializeObject(Object)
Serializes the specified object to a JSON string.

SerializeObject(Object, Formatting)
Serializes the specified object to a JSON string.

SerializeObject(Object, array<JsonConverter>[]()[][])
Serializes the specified object to a JSON string using a collection of JsonConverter.

SerializeObject(Object, Formatting, array<JsonConverter>[]()[][])
Serializes the specified object to a JSON string using a collection of JsonConverter.

SerializeObject(Object, JsonSerializerSettings)
Serializes the specified object to a JSON string using a collection of JsonConverter.

SerializeObject(Object, Formatting, JsonSerializerSettings)
Serializes the specified object to a JSON string using a collection of JsonConverter.

SerializeObjectAsync(Void)
SerializeObjectAsync(Void, String)
SerializeObjectAsync(Void, String, Object)
SerializeXmlNode(XmlNode)
Serializes the XML node to a JSON string.

SerializeXmlNode(XmlNode, Formatting)
Serializes the XML node to a JSON string.

SerializeXmlNode(XmlNode, Formatting, Boolean)
Serializes the XML node to a JSON string.

SerializeXNode(XObject)
Serializes the XNode to a JSON string.

SerializeXNode(XObject, Formatting)
Serializes the XNode to a JSON string.

SerializeXNode(XObject, Formatting, Boolean)
Serializes the XNode to a JSON string.

ToString(DateTime)
Converts the DateTime to its JSON string representation.

ToString(DateTime, DateFormatHandling, DateTimeZoneHandling)
Converts the DateTime to its JSON string representation using the DateFormatHandling specified.

ToString(DateTimeOffset)
Converts the DateTimeOffset to its JSON string representation.

ToString(DateTimeOffset, DateFormatHandling)
Converts the DateTimeOffset to its JSON string representation using the DateFormatHandling specified.

ToString(Boolean)
Converts the Boolean to its JSON string representation.

ToString(Char)
Converts the Char to its JSON string representation.

ToString(Enum)
Converts the Enum to its JSON string representation.

ToString(Int32)
Converts the Int32 to its JSON string representation.

ToString(Int16)
Converts the Int16 to its JSON string representation.

ToString(UInt16)
Converts the UInt16 to its JSON string representation.

ToString(UInt32)
Converts the UInt32 to its JSON string representation.

ToString(Int64)
Converts the Int64 to its JSON string representation.

ToString(UInt64)
Converts the UInt64 to its JSON string representation.

ToString(Single)
Converts the Single to its JSON string representation.

ToString(Double)
Converts the Double to its JSON string representation.

ToString(Byte)
Converts the Byte to its JSON string representation.

ToString(SByte)
Converts the SByte to its JSON string representation.

ToString(Decimal)
Converts the Decimal to its JSON string representation.

ToString(Guid)
Converts the Guid to its JSON string representation.

ToString(TimeSpan)
Converts the TimeSpan to its JSON string representation.

ToString(Uri)
Converts the Uri to its JSON string representation.

ToString(String)
Converts the String to its JSON string representation.

ToString(String, Char)
Converts the String to its JSON string representation.

ToString(Object)
Converts the Object to its JSON string representation.

True
Represents JavaScript's boolean value true as a string. This field is read-only.

Undefined
Represents JavaScript's undefined as a string. This field is read-only.

Inheritance Hierarchy
Object
JsonConvert

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