Json.NET - Quick Starts & API Documentation
ReadFrom Method (reader)
Namespaces ► Newtonsoft.Json.Linq ► JToken ► ReadFrom(JsonReader)
Creates a JToken from a JsonReader.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static JToken ReadFrom( JsonReader reader )
Public Shared Function ReadFrom ( _ reader As JsonReader _ ) As JToken
public: static JToken^ ReadFrom( JsonReader^ reader )
Parameters
- reader (JsonReader)
- An JsonReader positioned at the token to read into this JToken.
Return Value
An 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.