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, IJsonLineInfo
Public MustInherit Class JToken _
	Implements IJEnumerable(Of JToken), IEnumerable(Of JToken),  _
	IEnumerable, IJsonLineInfo
public ref class JToken abstract : IJEnumerable<JToken^>, 
	IEnumerable<JToken^>, IEnumerable, IJsonLineInfo
Members
All MembersMethodsProperties



IconMemberDescription
AddAfterSelf(Object)
Adds the specified content immediately after this token.

AddBeforeSelf(Object)
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.

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.

CreateReader()()()
Creates an JsonReader for this token.

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.

Explicit(JToken)
Performs an explicit conversion from JToken to array<Byte>[]()[].

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.

FromObject(Object)
Creates a JToken from an object.

FromObject(Object, JsonSerializer)
Creates a JToken from an object using the specified JsonSerializer.

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.

Implicit(Boolean)
Performs an implicit conversion from Boolean to JToken.

Implicit(DateTimeOffset)
Performs an implicit conversion from DateTimeOffset to JToken.

Implicit(Nullable<(Of <(Boolean>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Int64)
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Nullable<(Of <(DateTime>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Nullable<(Of <(DateTimeOffset>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Nullable<(Of <(Decimal>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Nullable<(Of <(Double>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(UInt16)
Performs an implicit conversion from UInt16 to JToken.

Implicit(Int32)
Performs an implicit conversion from Int32 to JToken.

Implicit(Nullable<(Of <(Int32>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(DateTime)
Performs an implicit conversion from DateTime to JToken.

Implicit(Nullable<(Of <(Int64>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Nullable<(Of <(Single>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Decimal)
Performs an implicit conversion from Decimal to JToken.

Implicit(Nullable<(Of <(UInt16>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Nullable<(Of <(UInt32>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Nullable<(Of <(UInt64>)>))
Performs an implicit conversion from Nullable<(Of <(T>)>) to JToken.

Implicit(Double)
Performs an implicit conversion from Double to JToken.

Implicit(Single)
Performs an implicit conversion from Single to JToken.

Implicit(String)
Performs an implicit conversion from String to JToken.

Implicit(UInt32)
Performs an implicit conversion from UInt32 to JToken.

Implicit(UInt64)
Performs an implicit conversion from UInt64 to JToken.

Implicit(array<Byte>[]()[])
Performs an implicit conversion from array<Byte>[]()[] to JToken.

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.

ReadFrom(JsonReader)
Creates a JToken from a JsonReader.

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

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

Root
Gets the root JToken of this JToken.

SelectToken(String)
Selects the token that matches the object path.

SelectToken(String, Boolean)
Selects the token that matches the object path.

ToString()()()
Returns the indented JSON for this token.
(Overrides Object.ToString()()().)
ToString(Formatting, array<JsonConverter>[]()[])
Returns the JSON for this token using the given formatting and converters.

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.5.0.0 (3.5.0.0)