Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

JsonValue.Load Method (Stream)

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

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

public static JsonValue Load(
	Stream stream
)

Parameters

stream
Type: System.IO.Stream
A Stream that contains 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

stream 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:
© 2015 Microsoft