Share via


JsonExtensions Class

Definition

JSON extensions

public static class JsonExtensions
type JsonExtensions = class
Public Module JsonExtensions
Inheritance
JsonExtensions

Fields

JsonContentType

The JSON content type for HTTP requests.

JsonMediaTypeSerializer

The JSON media type serializer.

JsonObjectTypeSerializer

The JSON object type serializer.

MediaSerializationSettings

The JSON media serialization settings.

ObjectSerializationSettings

The JSON object serialization settings.

Methods

CanConvertTo<TType>(JToken)

Checks if a conversion from the supplied Newtonsoft.Json.Linq.JToken to a TType can be made.

FromJson<T>(Stream)

Deserialize object from a JSON stream.

FromJson<T>(String)

Deserialize object from the JSON.

ToFormattedJson(Object)

Serialize object to formatted JSON.

ToJObjectWithValue(IDictionary, IEnumerable)

Converts an IDictionary object to Newtonsoft.Json.Linq.JObject with an extra level labeled as "value".

ToJson(Object)

Serialize object to the JSON.

ToJToken(Object)

Serialize object to JToken.

TryConvertTo<TType>(JToken, TType)

Checks if a conversion from the supplied Newtonsoft.Json.Linq.JToken to a TType can be made.

TryConvertTo<TType>(String, TType)

Checks if a conversion from the supplied Newtonsoft.Json.Linq.JToken to a TType can be made.

Applies to