Click or drag to resize
Json.NET

JTokenLoad Method (JsonReader, JsonLoadSettings)

 
Creates a JToken from a JsonReader.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public static JToken Load(
	JsonReader reader,
	JsonLoadSettings settings
)

Parameters

reader
Type: Newtonsoft.JsonJsonReader
A JsonReader positioned at the token to read into this JToken.
settings
Type: Newtonsoft.Json.LinqJsonLoadSettings
The JsonLoadSettings used to load the JSON. If this is null, default load settings will be used.

Return Value

Type: JToken
A JToken that contains the token and its descendant tokens that were read from the reader. The runtime type of the token is determined by the token type of the first token encountered in the reader.
See Also