다음을 통해 공유


JsonValue.Parse Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Deserializes text-based JSON into a JSON CLR type.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
Public Shared Function Parse ( _
    jsonString As String _
) As JsonValue
public static JsonValue Parse(
    string jsonString
)

Parameters

  • jsonString
    Type: System.String
    The text-based JSON to be parsed into a JSON CLR type.

Return Value

Type: System.Json.JsonValue
The JsonValue object that represents the parsed text-based JSON as a CLR type.

Exceptions

Exception Condition
ArgumentException

The length of jsonString is zero.

ArgumentNullException

jsonString is nulla null reference (Nothing in Visual Basic).

Remarks

The text is cast into JsonPrimitive, JsonArray, or JsonObject when deserialized depending on the text-based JSON supplied to the method.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.