![]() | JToken Class |
Namespace: Newtonsoft.Json.Linq
public abstract class JToken : IJEnumerable<JToken>, IEnumerable<JToken>, IEnumerable, IJsonLineInfo, ICloneable, IDynamicMetaObjectProvider
The JToken type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | EqualityComparer |
Gets a comparer that can compare two tokens for value equality.
|
![]() | First |
Get the first child token of this token.
|
![]() | HasValues |
Gets a value indicating whether this token has child tokens.
|
![]() | Item |
Gets the JToken with the specified key.
|
![]() | Last |
Get the last child token of this token.
|
![]() | 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 |
Gets the node type for this JToken.
|
Name | Description | |
---|---|---|
![]() | AddAfterSelf |
Adds the specified content immediately after this token.
|
![]() | AddAnnotation |
Adds an object to the annotation list of this JToken.
|
![]() | AddBeforeSelf |
Adds the specified content immediately before this token.
|
![]() | AfterSelf |
Returns a collection of the sibling tokens after this token, in document order.
|
![]() | Ancestors |
Returns a collection of the ancestor tokens of this token.
|
![]() | AncestorsAndSelf |
Returns a collection of tokens that contain this token, and the ancestors of this token.
|
![]() | Annotation(Type) |
Gets the first annotation object of the specified type from this JToken.
|
![]() | AnnotationT |
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.
|
![]() | AnnotationsT |
Gets a collection of annotations of the specified type for this JToken.
|
![]() | BeforeSelf |
Returns a collection of the sibling tokens before this token, in document order.
|
![]() | Children |
Returns a collection of the child tokens of this token, in document order.
|
![]() | ChildrenT |
Returns a collection of the child tokens of this token, in document order, filtered by the specified type.
|
![]() | CreateReader |
Creates a JsonReader for this token.
|
![]() | DeepClone |
Creates a new instance of the JToken. All child tokens are recursively cloned.
|
![]() ![]() | DeepEquals |
Compares the values of two tokens, including the values of all descendant tokens.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FromObject(Object) |
Creates a JToken from an object.
|
![]() ![]() | FromObject(Object, JsonSerializer) |
Creates a JToken from an object using the specified JsonSerializer.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetMetaObject |
Returns the DynamicMetaObject responsible for binding operations performed on this object.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | Load(JsonReader) |
Creates a JToken from a JsonReader.
|
![]() ![]() | Load(JsonReader, JsonLoadSettings) |
Creates a JToken from a JsonReader.
|
![]() ![]() | LoadAsync(JsonReader, CancellationToken) |
Asynchronously creates a JToken from a JsonReader.
|
![]() ![]() | LoadAsync(JsonReader, JsonLoadSettings, CancellationToken) |
Asynchronously creates a JToken from a JsonReader.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Parse(String) |
Load a JToken from a string that contains JSON.
|
![]() ![]() | Parse(String, JsonLoadSettings) |
Load a JToken from a string that contains JSON.
|
![]() ![]() | ReadFrom(JsonReader) |
Creates a JToken from a JsonReader.
|
![]() ![]() | ReadFrom(JsonReader, JsonLoadSettings) |
Creates a JToken from a JsonReader.
|
![]() ![]() | ReadFromAsync(JsonReader, CancellationToken) |
Asynchronously creates a JToken from a JsonReader.
|
![]() ![]() | ReadFromAsync(JsonReader, JsonLoadSettings, CancellationToken) |
Asynchronously creates a JToken from a JsonReader.
|
![]() | Remove |
Removes this token from its parent.
|
![]() | RemoveAnnotations(Type) |
Removes the annotations of the specified type from this JToken.
|
![]() | RemoveAnnotationsT |
Removes the annotations of the specified type from this JToken.
|
![]() | Replace |
Replaces this token with the specified token.
|
![]() | SelectToken(String) |
Selects a JToken using a JPath expression. Selects the token that matches the object path.
|
![]() | SelectToken(String, Boolean) |
Selects a JToken using a JPath expression. Selects the token that matches the object path.
|
![]() | SelectTokens(String) |
Selects a collection of elements using a JPath expression.
|
![]() | SelectTokens(String, Boolean) |
Selects a collection of elements using a JPath expression.
|
![]() | ToObject(Type) |
Creates an instance of the specified .NET type from the JToken.
|
![]() | ToObject(Type, JsonSerializer) |
Creates an instance of the specified .NET type from the JToken using the specified JsonSerializer.
|
![]() | ToObjectT |
Creates an instance of the specified .NET type from the JToken.
|
![]() | ToObjectT(JsonSerializer) |
Creates an instance of the specified .NET type from the JToken using the specified JsonSerializer.
|
![]() | ToString |
Returns the indented JSON for this token.
(Overrides ObjectToString.) |
![]() | ToString(Formatting, JsonConverter) |
Returns the JSON for this token using the given formatting and converters.
|
![]() | ValueT |
Gets the JToken with the specified key converted to the specified type.
|
![]() | ValuesT |
Returns a collection of the child values of this token, in document order.
|
![]() | WriteTo |
Writes this token to a JsonWriter.
|
![]() | WriteToAsync(JsonWriter, JsonConverter) |
Writes this token to a JsonWriter asynchronously.
|
![]() | WriteToAsync(JsonWriter, CancellationToken, JsonConverter) |
Writes this token to a JsonWriter asynchronously.
|
Name | Description | |
---|---|---|
![]() ![]() | (JToken to Boolean) |
Performs an explicit conversion from JToken to Boolean.
|
![]() ![]() | (JToken to DateTimeOffset) |
Performs an explicit conversion from JToken to DateTimeOffset.
|
![]() ![]() | (JToken to NullableBoolean) | |
![]() ![]() | (JToken to Int64) | |
![]() ![]() | (JToken to NullableDateTime) | |
![]() ![]() | (JToken to NullableDateTimeOffset) | |
![]() ![]() | (JToken to NullableDecimal) | |
![]() ![]() | (JToken to NullableDouble) | |
![]() ![]() | (JToken to NullableChar) | |
![]() ![]() | (JToken to Int32) |
Performs an explicit conversion from JToken to Int32.
|
![]() ![]() | (JToken to Int16) |
Performs an explicit conversion from JToken to Int16.
|
![]() ![]() | (JToken to UInt16) |
Performs an explicit conversion from JToken to UInt16.
|
![]() ![]() | (JToken to Char) |
Performs an explicit conversion from JToken to Char.
|
![]() ![]() | (JToken to Byte) |
Performs an explicit conversion from JToken to Byte.
|
![]() ![]() | (JToken to SByte) |
Performs an explicit conversion from JToken to SByte.
|
![]() ![]() | (JToken to NullableInt32) | |
![]() ![]() | (JToken to NullableInt16) | |
![]() ![]() | (JToken to NullableUInt16) | |
![]() ![]() | (JToken to NullableByte) | |
![]() ![]() | (JToken to NullableSByte) | |
![]() ![]() | (JToken to DateTime) | |
![]() ![]() | (JToken to NullableInt64) | |
![]() ![]() | (JToken to NullableSingle) | |
![]() ![]() | (JToken to Decimal) |
Performs an explicit conversion from JToken to Decimal.
|
![]() ![]() | (JToken to NullableUInt32) | |
![]() ![]() | (JToken to NullableUInt64) | |
![]() ![]() | (JToken to Double) |
Performs an explicit conversion from JToken to Double.
|
![]() ![]() | (JToken to Single) |
Performs an explicit conversion from JToken to Single.
|
![]() ![]() | (JToken to String) |
Performs an explicit conversion from JToken to String.
|
![]() ![]() | (JToken to UInt32) |
Performs an explicit conversion from JToken to UInt32.
|
![]() ![]() | (JToken to UInt64) |
Performs an explicit conversion from JToken to UInt64.
|
![]() ![]() | (JToken to Byte) |
Performs an explicit conversion from JToken to Byte[].
|
![]() ![]() | (JToken to Guid) |
Performs an explicit conversion from JToken to Guid.
|
![]() ![]() | (JToken to NullableGuid) | |
![]() ![]() | (JToken to TimeSpan) |
Performs an explicit conversion from JToken to TimeSpan.
|
![]() ![]() | (JToken to NullableTimeSpan) | |
![]() ![]() | (JToken to Uri) |
Performs an explicit conversion from JToken to Uri.
|
![]() ![]() | (Boolean to JToken) |
Performs an implicit conversion from Boolean to JToken.
|
![]() ![]() | (Byte to JToken) |
Performs an implicit conversion from Byte to JToken.
|
![]() ![]() | (Byte to JToken) |
Performs an implicit conversion from Byte[] to JToken.
|
![]() ![]() | (DateTime to JToken) |
Performs an implicit conversion from DateTime to JToken.
|
![]() ![]() | (DateTimeOffset to JToken) |
Performs an implicit conversion from DateTimeOffset to JToken.
|
![]() ![]() | (Decimal to JToken) |
Performs an implicit conversion from Decimal to JToken.
|
![]() ![]() | (Double to JToken) |
Performs an implicit conversion from Double to JToken.
|
![]() ![]() | (Guid to JToken) |
Performs an implicit conversion from Guid to JToken.
|
![]() ![]() | (Int16 to JToken) |
Performs an implicit conversion from Int16 to JToken.
|
![]() ![]() | (Int32 to JToken) |
Performs an implicit conversion from Int32 to JToken.
|
![]() ![]() | (Int64 to JToken) | |
![]() ![]() | (NullableBoolean to JToken) | |
![]() ![]() | (NullableByte to JToken) | |
![]() ![]() | (NullableDateTime to JToken) | |
![]() ![]() | (NullableDateTimeOffset to JToken) | |
![]() ![]() | (NullableDecimal to JToken) | |
![]() ![]() | (NullableDouble to JToken) | |
![]() ![]() | (NullableGuid to JToken) | |
![]() ![]() | (NullableInt16 to JToken) | |
![]() ![]() | (NullableInt32 to JToken) | |
![]() ![]() | (NullableInt64 to JToken) | |
![]() ![]() | (NullableSByte to JToken) | |
![]() ![]() | (NullableSingle to JToken) | |
![]() ![]() | (NullableTimeSpan to JToken) | |
![]() ![]() | (NullableUInt16 to JToken) | |
![]() ![]() | (NullableUInt32 to JToken) | |
![]() ![]() | (NullableUInt64 to JToken) | |
![]() ![]() | (SByte to JToken) |
Performs an implicit conversion from SByte to JToken.
|
![]() ![]() | (Single to JToken) |
Performs an implicit conversion from Single to JToken.
|
![]() ![]() | (String to JToken) |
Performs an implicit conversion from String to JToken.
|
![]() ![]() | (TimeSpan to JToken) |
Performs an implicit conversion from TimeSpan to JToken.
|
![]() ![]() | (UInt16 to JToken) |
Performs an implicit conversion from UInt16 to JToken.
|
![]() ![]() | (UInt32 to JToken) |
Performs an implicit conversion from UInt32 to JToken.
|
![]() ![]() | (UInt64 to JToken) |
Performs an implicit conversion from UInt64 to JToken.
|
![]() ![]() | (Uri to JToken) |
Performs an implicit conversion from Uri to JToken.
|
Name | Description | |||
---|---|---|---|---|
![]() | AncestorsJToken |
Returns a collection of tokens that contains the ancestors of every token in the source collection.
(Defined by Extensions.) | ||
![]() | AncestorsAndSelfJToken |
Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection.
(Defined by Extensions.) | ||
![]() | AsJEnumerable | Overloaded.
Returns the input typed as IJEnumerableT.
(Defined by Extensions.) | ||
![]() | AsJEnumerableJToken | Overloaded.
Returns the input typed as IJEnumerableT.
(Defined by Extensions.) | ||
![]() | ChildrenJToken | Overloaded.
Returns a collection of child tokens of every array in the source collection.
(Defined by Extensions.) | ||
![]() | ChildrenJToken, U | Overloaded.
Returns a collection of converted child tokens of every array in the source collection.
(Defined by Extensions.) | ||
![]() | IsValid(JsonSchema) | Overloaded. Determines whether the JToken is valid.
| ||
![]() | IsValid(JsonSchema, IListString) | Overloaded. Determines whether the JToken is valid.
| ||
![]() | Validate(JsonSchema) | Overloaded. Validates the specified JToken.
| ||
![]() | Validate(JsonSchema, ValidationEventHandler) | Overloaded. Validates the specified JToken.
| ||
![]() | ValueU | Overloaded.
Converts the value.
(Defined by Extensions.) | ||
![]() | ValueJToken, U | Overloaded.
Converts the value.
(Defined by Extensions.) | ||
![]() | Values | Overloaded.
Returns a collection of child values of every object in the source collection.
(Defined by Extensions.) | ||
![]() | Values(Object) | Overloaded.
Returns a collection of child values of every object in the source collection with the given key.
(Defined by Extensions.) | ||
![]() | ValuesU | Overloaded.
Returns a collection of converted child values of every object in the source collection.
(Defined by Extensions.) | ||
![]() | ValuesU(Object) | Overloaded.
Returns a collection of converted child values of every object in the source collection with the given key.
(Defined by Extensions.) |