This topic has not yet been rated - Rate this topic

JsonValue.Parse Method

Deserializes text-based JSON into a JSON CLR type.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)
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.
Exception Condition
ArgumentException

The length of jsonString is zero.

ArgumentNullException

jsonString is null.

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

Silverlight

Supported in: 5, 4, 3

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ