JsonValue.Load Method

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

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member Load(Stream) Deserializes text-based JSON from a stream into a JSON CLR type.
Public methodStatic member Load(TextReader) Deserializes text-based JSON from a text reader into a JSON CLR type.

Top

Remarks

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

There are two overloads provided: one gets text-based JSON from a text reader and the other from a stream. Note that these methods are static and can be called on any text-based JSON content and cast to the appropriate JSON type automatically.