Export (0) Print
Expand All

JsonValue.Load Method (TextReader)

Deserializes text-based JSON from a text reader into a JSON CLR type.

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

public static JsonValue Load(
	TextReader textReader
)

Parameters

textReader
Type: System.IO.TextReader
A TextReader over text-based JSON content.

Return Value

Type: System.Json.JsonValue
Returns a class derived from JsonValue that contains the deserialized text-based JSON.

ExceptionCondition
ArgumentNullException

textReader is null.

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

Note that this method is static and can be called on any text-based JSON content and cast to the appropriate JSON type automatically.

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.

Community Additions

ADD
Show:
© 2014 Microsoft