JsonConvert
Provides methods for converting between common language runtime types and JSON types.
Represents JavaScript's boolean value false as a string. This field is read-only.
Represents JavaScript's NaN as a string. This field is read-only.
Represents JavaScript's negative infinity as a string. This field is read-only.
Represents JavaScript's null as a string. This field is read-only.
Represents JavaScript's positive infinity as a string. This field is read-only.
Represents JavaScript's boolean value true as a string. This field is read-only.
Represents JavaScript's undefined as a string. This field is read-only.
Deserializes the JSON to the given anonymous type.
Deserializes the JSON to a .NET object.
Deserializes the JSON to a .NET object.
Deserializes the JSON to the specified .NET type.
Deserializes the JSON to the specified .NET type.
Deserializes the JSON to the specified .NET type.
Deserializes the JSON to the specified .NET type.
Deserializes the JSON to the specified .NET type.
Deserializes the JSON to the specified .NET type.
Asynchronously deserializes the JSON to the specified .NET type.
Asynchronously deserializes the JSON to the specified .NET type.
Asynchronously deserializes the JSON to the specified .NET type.
public static Task<object> DeserializeObjectAsync(string value, Type type, JsonSerializerSettings settings)
Asynchronously deserializes the JSON to the specified .NET type.
Deserializes the XmlNode from a JSON string.
Deserializes the XmlNode from a JSON string nested in a root elment.
public static XmlDocument DeserializeXmlNode(string value, string deserializeRootElementName, bool writeArrayAttribute)
Deserializes the XmlNode from a JSON string nested in a root elment.
Deserializes the XNode from a JSON string.
Deserializes the XNode from a JSON string nested in a root elment.
public static XDocument DeserializeXNode(string value, string deserializeRootElementName, bool writeArrayAttribute)
Deserializes the XNode from a JSON string nested in a root elment.
Populates the object with values from the JSON string.
Populates the object with values from the JSON string.
public static Task PopulateObjectAsync(string value, object target, JsonSerializerSettings settings)
Asynchronously populates the object with values from the JSON string.
Serializes the specified object to a JSON string.
Serializes the specified object to a JSON string.
Serializes the specified object to a JSON string using a collection of JsonConverter.
public static string SerializeObject(object value, Formatting formatting, JsonConverter[] converters)
Serializes the specified object to a JSON string using a collection of JsonConverter.
Serializes the specified object to a JSON string using a collection of JsonConverter.
public static string SerializeObject(object value, Formatting formatting, JsonSerializerSettings settings)
Serializes the specified object to a JSON string using a collection of JsonConverter.
Asynchronously serializes the specified object to a JSON string using a collection of JsonConverter.
Asynchronously serializes the specified object to a JSON string using a collection of JsonConverter.
public static Task<string> SerializeObjectAsync(object value, Formatting formatting, JsonSerializerSettings settings)
Asynchronously serializes the specified object to a JSON string using a collection of JsonConverter.
Serializes the XML node to a JSON string.
Serializes the XML node to a JSON string.
Serializes the XML node to a JSON string.
Serializes the XNode to a JSON string.
Serializes the XNode to a JSON string.
Serializes the XNode to a JSON string.
Converts the DateTime to its JSON string representation.
public static string ToString(DateTime value, DateFormatHandling format, DateTimeZoneHandling timeZoneHandling)
Converts the DateTime to its JSON string representation using the DateFormatHandling specified.
Converts the DateTimeOffset to its JSON string representation.
Converts the DateTimeOffset to its JSON string representation using the DateFormatHandling specified.
Converts the Boolean to its JSON string representation.
Converts the Char to its JSON string representation.
Converts the Enum to its JSON string representation.
Converts the Int32 to its JSON string representation.
Converts the Int16 to its JSON string representation.
Converts the UInt16 to its JSON string representation.
Converts the UInt32 to its JSON string representation.
Converts the Int64 to its JSON string representation.
Converts the UInt64 to its JSON string representation.
Converts the Single to its JSON string representation.
Converts the Double to its JSON string representation.
Converts the Byte to its JSON string representation.
Converts the SByte to its JSON string representation.
Converts the Decimal to its JSON string representation.
Converts the Guid to its JSON string representation.
Converts the TimeSpan to its JSON string representation.
Converts the Uri to its JSON string representation.
Converts the String to its JSON string representation.
Converts the String to its JSON string representation.
Converts the Object to its JSON string representation.