Methods
-
Add
After Adds the specified content immediately after this token.Self(Object) -
Add
Annotation(Object) Adds an object to the annotation list of this JToken. -
Add
Before Adds the specified content immediately before this token.Self(Object) -
After
Self() Returns a collection of the sibling tokens after this token, in document order. - Ancestors() Returns a collection of the ancestor tokens of this token.
-
Ancestors
And Returns a collection of tokens that contain this token, and the ancestors of this token.Self() - Annotation(Type) Gets the first annotation object of the specified type from this JToken.
- Annotation``1() Get the first annotation object of the specified type from this JToken.
- Annotations(Type) Gets a collection of annotations of the specified type for this JToken.
- Annotations``1() Gets a collection of annotations of the specified type for this JToken.
-
Before
Self() Returns a collection of the sibling tokens before this token, in document order. - Children() virtual Returns a collection of the child tokens of this token, in document order.
- Children``1() Returns a collection of the child tokens of this token, in document order, filtered by the specified type.
-
Create
Reader() Creates a JsonReader for this token. -
Deep
Clone() Creates a new instance of the JToken. All child tokens are recursively cloned. -
Deep
Equals(JToken, static Compares the values of two tokens, including the values of all descendant tokens.JToken) -
From
Object(Object) static Creates a JToken from an object. -
From
Object(Object, static Creates a JToken from an object using the specified JsonSerializer.Json Serializer) -
Get
Meta protectedvirtual Returns the DynamicMetaObject responsible for binding operations performed on this object.Object(Expression) -
Load(Json
Reader) static Creates a JToken from a JsonReader. -
Load(Json
Reader, static Creates a JToken from a JsonReader.Json Load Settings) -
Load
Async(Json static Asynchronously creates a JToken from a JsonReader.Reader, Cancellation Token) -
Load
Async(Json static Asynchronously creates a JToken from a JsonReader.Reader, Json Load Settings, Cancellation Token) - Parse(String) static Load a JToken from a string that contains JSON.
-
Parse(String,
Json static Load a JToken from a string that contains JSON.Load Settings) -
Read
From(Json static Creates a JToken from a JsonReader.Reader) -
Read
From(Json static Creates a JToken from a JsonReader.Reader, Json Load Settings) -
Read
From static Asynchronously creates a JToken from a JsonReader.Async(Json Reader, Cancellation Token) -
Read
From static Asynchronously creates a JToken from a JsonReader.Async(Json Reader, Json Load Settings, Cancellation Token) - Remove() Removes this token from its parent.
-
Remove
Annotations(Type) Removes the annotations of the specified type from this JToken. -
Remove
Annotations``1() Removes the annotations of the specified type from this JToken. - Replace(JToken) Replaces this token with the specified token.
-
Select
Token(String) Selects a JToken using a JSONPath expression. Selects the token that matches the object path. -
Select
Token(String, Selects a JToken using a JSONPath expression. Selects the token that matches the object path.Boolean) -
Select
Tokens(String) Selects a collection of elements using a JSONPath expression. -
Select
Tokens(String, Selects a collection of elements using a JSONPath expression.Boolean) -
To
Object(Type) Creates an instance of the specified .NET type from the JToken. -
To
Object(Type, Creates an instance of the specified .NET type from the JToken using the specified JsonSerializer.Json Serializer) -
To
Object``1() Creates an instance of the specified .NET type from the JToken. -
To
Object``1(Json Creates an instance of the specified .NET type from the JToken using the specified JsonSerializer.Serializer) -
To
String() virtual Returns the indented JSON for this token. -
To
String(Formatting, Returns the JSON for this token using the given formatting and converters.Json Converter[]) - Value``1(Object) virtual Gets the JToken with the specified key converted to the specified type.
- Values``1() virtual Returns a collection of the child values of this token, in document order.
-
Write
To(Json abstract Writes this token to a JsonWriter.Writer, Json Converter[]) -
Write
To virtual Writes this token to a JsonWriter asynchronously.Async(Json Writer, Cancellation Token, Json Converter[]) -
Write
To Writes this token to a JsonWriter asynchronously.Async(Json Writer, Json Converter[]) - op_Explicit(JToken):Boolean static Performs an explicit conversion from JToken to Boolean.
- op_Explicit(JToken):Byte static Performs an explicit conversion from JToken to Byte.
- op_Explicit(JToken):Byte[] static Performs an explicit conversion from JToken to Byte[].
- op_Explicit(JToken):Char static Performs an explicit conversion from JToken to Char.
-
op_Explicit(JToken):Date
Time static Performs an explicit conversion from JToken to Nullable`1 of DateTime. -
op_Explicit(JToken):Date
Time static Performs an explicit conversion from JToken to DateTimeOffset.Offset - op_Explicit(JToken):Decimal static Performs an explicit conversion from JToken to Decimal.
- op_Explicit(JToken):Double static Performs an explicit conversion from JToken to Double.
- op_Explicit(JToken):Guid static Performs an explicit conversion from JToken to Guid.
- op_Explicit(JToken):Int16 static Performs an explicit conversion from JToken to Int16.
- op_Explicit(JToken):Int32 static Performs an explicit conversion from JToken to Int32.
- op_Explicit(JToken):Int64 static Performs an explicit conversion from JToken to Nullable`1 of Int64.
- op_Explicit(JToken):Nullable<Boolean> static Performs an explicit conversion from JToken to Nullable`1 of Boolean.
- op_Explicit(JToken):Nullable<Byte> static Performs an explicit conversion from JToken to Nullable`1 of Byte.
- op_Explicit(JToken):Nullable<Char> static Performs an explicit conversion from JToken to Nullable`1 of Char.
-
op_Explicit(JToken):Nullable<Date
Time> static Performs an explicit conversion from JToken to Nullable`1 of DateTime. -
op_Explicit(JToken):Nullable<Date
Time static Performs an explicit conversion from JToken to Nullable`1 of DateTimeOffset.Offset> - op_Explicit(JToken):Nullable<Decimal> static Performs an explicit conversion from JToken to Nullable`1 of Decimal.
- op_Explicit(JToken):Nullable<Double> static Performs an explicit conversion from JToken to Nullable`1 of Double.
- op_Explicit(JToken):Nullable<Guid> static Performs an explicit conversion from JToken to Nullable`1 of Guid .
- op_Explicit(JToken):Nullable<Int16> static Performs an explicit conversion from JToken to Nullable`1 of Int16.
- op_Explicit(JToken):Nullable<Int32> static Performs an explicit conversion from JToken to Nullable`1 of Int32 .
- op_Explicit(JToken):Nullable<Int64> static Performs an explicit conversion from JToken to Nullable`1 of Int64.
- op_Explicit(JToken):Nullable<SByte> static Performs an explicit conversion from JToken to Nullable`1 of SByte.
- op_Explicit(JToken):Nullable<Single> static Performs an explicit conversion from JToken to Nullable`1 of Single.
-
op_Explicit(JToken):Nullable<Time
Span> static Performs an explicit conversion from JToken to Nullable`1 of TimeSpan. - op_Explicit(JToken):Nullable<UInt16> static Performs an explicit conversion from JToken to Nullable`1 of UInt16.
- op_Explicit(JToken):Nullable<UInt32> static Performs an explicit conversion from JToken to Nullable`1 of UInt32.
- op_Explicit(JToken):Nullable<UInt64> static Performs an explicit conversion from JToken to Nullable`1 of UInt64.
- op_Explicit(JToken):SByte static Performs an explicit conversion from JToken to SByte.
- op_Explicit(JToken):Single static Performs an explicit conversion from JToken to Single.
- op_Explicit(JToken):String static Performs an explicit conversion from JToken to String.
-
op_Explicit(JToken):Time
Span static Performs an explicit conversion from JToken to TimeSpan. - op_Explicit(JToken):UInt16 static Performs an explicit conversion from JToken to UInt16.
- op_Explicit(JToken):UInt32 static Performs an explicit conversion from JToken to UInt32.
- op_Explicit(JToken):UInt64 static Performs an explicit conversion from JToken to UInt64.
- op_Explicit(JToken):Uri static Performs an explicit conversion from JToken to Uri.
- op_Implicit(Boolean):JToken static Performs an implicit conversion from Boolean to JToken.
- op_Implicit(Byte):JToken static Performs an implicit conversion from Byte to JToken.
- op_Implicit(Byte[]):JToken static Performs an implicit conversion from Byte[] to JToken.
-
op_Implicit(Date
Time):JToken static Performs an implicit conversion from DateTime to JToken. -
op_Implicit(Date
Time static Performs an implicit conversion from DateTimeOffset to JToken.Offset):JToken - op_Implicit(Decimal):JToken static Performs an implicit conversion from Decimal to JToken.
- op_Implicit(Double):JToken static Performs an implicit conversion from Double to JToken.
- op_Implicit(Guid):JToken static Performs an implicit conversion from Guid to JToken.
- op_Implicit(Int16):JToken static Performs an implicit conversion from Int16 to JToken.
- op_Implicit(Int32):JToken static Performs an implicit conversion from Int32 to JToken.
- op_Implicit(Int64):JToken static Performs an implicit conversion from Nullable`1 of Int64 to JToken.
- op_Implicit(Nullable<Boolean>):JToken static Performs an implicit conversion from Nullable`1 of Boolean to JToken.
- op_Implicit(Nullable<Byte>):JToken static Performs an implicit conversion from Nullable`1 of Byte to JToken.
-
op_Implicit(Nullable<Date
Time>):JToken static Performs an implicit conversion from Nullable`1 of DateTime to JToken. -
op_Implicit(Nullable<Date
Time static Performs an implicit conversion from Nullable`1 of DateTimeOffset to JToken.Offset>):JToken - op_Implicit(Nullable<Decimal>):JToken static Performs an implicit conversion from Nullable`1 of Decimal to JToken.
- op_Implicit(Nullable<Double>):JToken static Performs an implicit conversion from Nullable`1 of Double to JToken.
- op_Implicit(Nullable<Guid>):JToken static Performs an implicit conversion from Nullable`1 of Guid to JToken.
- op_Implicit(Nullable<Int16>):JToken static Performs an implicit conversion from Nullable`1 of Int16 to JToken.
- op_Implicit(Nullable<Int32>):JToken static Performs an implicit conversion from Nullable`1 of Int32 to JToken.
- op_Implicit(Nullable<Int64>):JToken static Performs an implicit conversion from Nullable`1 of Int64 to JToken.
- op_Implicit(Nullable<SByte>):JToken static Performs an implicit conversion from Nullable`1 of SByte to JToken.
- op_Implicit(Nullable<Single>):JToken static Performs an implicit conversion from Nullable`1 of Single to JToken.
-
op_Implicit(Nullable<Time
Span>):JToken static Performs an implicit conversion from Nullable`1 of TimeSpan to JToken. - op_Implicit(Nullable<UInt16>):JToken static Performs an implicit conversion from Nullable`1 of UInt16 to JToken.
- op_Implicit(Nullable<UInt32>):JToken static Performs an implicit conversion from Nullable`1 of UInt32 to JToken.
- op_Implicit(Nullable<UInt64>):JToken static Performs an implicit conversion from Nullable`1 of UInt64 to JToken.
- op_Implicit(SByte):JToken static Performs an implicit conversion from SByte to JToken.
- op_Implicit(Single):JToken static Performs an implicit conversion from Single to JToken.
- op_Implicit(String):JToken static Performs an implicit conversion from String to JToken.
-
op_Implicit(Time
Span):JToken static Performs an implicit conversion from TimeSpan to JToken. - op_Implicit(UInt16):JToken static Performs an implicit conversion from UInt16 to JToken.
- op_Implicit(UInt32):JToken static Performs an implicit conversion from UInt32 to JToken.
- op_Implicit(UInt64):JToken static Performs an implicit conversion from UInt64 to JToken.
- op_Implicit(Uri):JToken static Performs an implicit conversion from Uri to JToken.
Properties
-
Equality
Comparer static Gets a comparer that can compare two tokens for value equality. - First virtual Get the first child token of this token.
-
Has
Values abstract Gets a value indicating whether this token has child tokens. - Item virtual
- Last virtual Get the last child token of this token.
-
Newtonsoft.
Json. privatesealedIJson Line Info. Line Number -
Newtonsoft.
Json. privatesealedIJson Line Info. Line Position -
Newtonsoft.
Json. privatesealedLinq. IJEnumerable<Newtonsoft. Json. Linq. JToken>. Item - Next Gets the next sibling token of this node.
- Parent Gets or sets the parent.
- Path Gets the path of the JSON token.
- Previous Gets the previous sibling token of this node.
- Root Gets the root JToken of this JToken.
- Type abstract Gets the node type for this JToken.