Json.NET - Quick Starts & API Documentation
JToken Class
NamespacesNewtonsoft.Json.LinqJToken
Represents an abstract JSON token.
Declaration Syntax
C#Visual BasicVisual C++
public abstract class JToken : IJEnumerable<JToken>, 
	IEnumerable<JToken>, IEnumerable
Public MustInherit Class JToken _
	Implements IJEnumerable(Of JToken), IEnumerable(Of JToken),  _
	IEnumerable
public ref class JToken abstract : IJEnumerable<JToken^>, 
	IEnumerable<JToken^>, IEnumerable
Members
All MembersMethodsProperties



IconMemberDescription
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.

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.

Children<(Of <(T>)>)()()()
Returns a collection of the child tokens of this token, in document order, filtered by the specified type.

DeepEquals(JToken, JToken)
Compares the values of two tokens, including the values of all descendant tokens.

EqualityComparer
Gets a comparer that can compare two tokens for value equality.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Explicit(JToken)
Performs an explicit conversion from JToken to Boolean.

Explicit(JToken)
Performs an explicit conversion from JToken to DateTimeOffset.

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Int64.

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Int32.

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to DateTime.

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Decimal.

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Nullable<(Of <(T>)>).

Explicit(JToken)
Performs an explicit conversion from JToken to Double.

Explicit(JToken)
Performs an explicit conversion from JToken to Single.

Explicit(JToken)
Performs an explicit conversion from JToken to String.

Explicit(JToken)
Performs an explicit conversion from JToken to UInt32.

Explicit(JToken)
Performs an explicit conversion from JToken to UInt64.

Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
First
Get the first child token of this token.

GetEnumerator()()()
Returns an enumerator that iterates through a collection.

GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
HasValues
Gets a value indicating whether this token has childen tokens.

Item[([(Object])])
Gets the JToken with the specified key.

Last
Get the last child token of this token.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Next
Gets the next sibling token of this node.

Parent
Gets or sets the parent.

Previous
Gets the previous sibling token of this node.

Remove()()()
Removes this token from its parent.

Replace(JToken)
Replaces this token with the specified token.

Root
Gets the root JToken of this JToken.

ToString()()()
Returns the indented JSON for this token.
(Overrides Object.ToString()()().)
Type
Gets the node type for this JToken.

Value<(Of <(T>)>)(Object)
Gets the JToken with the specified key converted to the specified type.

Values<(Of <(T>)>)()()()
Returns a collection of the child values of this token, in document order.

WriteTo(JsonWriter, array<JsonConverter>[]()[])
Writes this token to a JsonWriter.

Inheritance Hierarchy

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 3.0.0.0 (3.0.0.0)