Json.Decode Method

Definition

Overloads

Decode(String)

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

Decode(String, Type)

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

Decode<T>(String)

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

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

The JSON-encoded string to convert.

Returns

The JSON-encoded data converted to a data object.

Applies to

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

The JSON-encoded string to convert.

targetType
Type

The type that the value data should be converted to.

Returns

The JSON-encoded data converted to the specified type.

Applies to

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

The JSON-encoded string to convert.

Returns

T

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

Applies to