Json.Decode Json.Decode Json.Decode Method

Definition

Overloads

Decode(String) Decode(String) Decode(String)

Converts data in JavaScript Object Notation (JSON) format into a data object.

Decode(String, Type) Decode(String, Type) Decode(String, Type)

Converts data in JavaScript Object Notation (JSON) format into a data object of a specified type.

Decode<T>(String) Decode<T>(String) Decode<T>(String)

Converts data in JavaScript Object Notation (JSON) format into the specified strongly typed data list.

Decode(String) Decode(String) Decode(String)

Converts data in JavaScript Object Notation (JSON) format into a data object.

public static dynamic Decode (string value);
static member Decode : string -> obj
Public Shared Function Decode (value As String) As Object

Parameters

value
String String String

The JSON-encoded string to convert.

Returns

The JSON-encoded data converted to a data object.

Decode(String, Type) Decode(String, Type) Decode(String, Type)

Converts data in JavaScript Object Notation (JSON) format into a data object of a specified type.

public static dynamic Decode (string value, Type targetType);
static member Decode : string * Type -> obj
Public Shared Function Decode (value As String, targetType As Type) As Object

Parameters

value
String String String

The JSON-encoded string to convert.

targetType
Type Type Type

The type that the value data should be converted to.

Returns

The JSON-encoded data converted to the specified type.

Decode<T>(String) Decode<T>(String) Decode<T>(String)

Converts data in JavaScript Object Notation (JSON) format into the specified strongly typed data list.

public static T Decode<T> (string value);
static member Decode : string -> 'T
Public Shared Function Decode(Of T) (value As String) As T

Type Parameters

T

The type of the strongly typed list to convert JSON data into.

Parameters

value
String String String

The JSON-encoded string to convert.

Returns

T T T

The JSON-encoded data converted to a strongly typed list.

Applies to