Json.Decode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The JSON-encoded data converted to a strongly typed list.