JToken Class

Json.NET

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



Icon Member Description
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.

Ancestors<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns a collection of tokens that contains the ancestors of every token in the source collection.
(Inherited from Extensions.)
AsJEnumerable(IEnumerable<(Of <<'(JToken>)>>))
Returns the input typed as IJEnumerable<(Of <(<'T>)>)>.
(Inherited from Extensions.)
AsJEnumerable<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns the input typed as IJEnumerable<(Of <(<'T>)>)>.
(Inherited from Extensions.)
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.

Children<(Of <<'(T, U>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns a collection of converted child tokens of every array in the source collection.
(Inherited from Extensions.)
CreateReader()()()()
Creates an JsonReader for this token.

DeepClone()()()()
Creates a new instance of the JToken. All child tokens are recursively cloned.

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.)
ExplicitNarrowingExplicitExplicitExplicit(JToken to Boolean)
Performs an explicit conversion from JToken to Boolean.

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

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(Boolean>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

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

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(DateTime>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(DateTimeOffset>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(Decimal>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(Double>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

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

ExplicitNarrowingExplicitExplicitExplicit(JToken to Int16)
Performs an explicit conversion from JToken to Int16.

ExplicitNarrowingExplicitExplicitExplicit(JToken to UInt16)
Performs an explicit conversion from JToken to UInt16.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(Int32>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(Int16>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(UInt16>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

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

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(Int64>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(Single>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

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

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(UInt32>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

ExplicitNarrowingExplicitExplicitExplicit(JToken to Nullable<(Of <<'(UInt64>)>>))
Performs an explicit conversion from JToken to Nullable<(Of <(<'T>)>)>.

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

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

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

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

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

ExplicitNarrowingExplicitExplicitExplicit(JToken to array<Byte>[]()[][])
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.)
GetMetaObject(Expression)
Returns the DynamicMetaObject responsible for binding operations performed on this object.

GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
HasValues
Gets a value indicating whether this token has childen tokens.

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

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

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

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

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

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

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

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

ImplicitWideningImplicitImplicitImplicit(Int16 to JToken)
Performs an implicit conversion from Int16 to JToken.

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

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

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

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

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

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

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

ImplicitWideningImplicitImplicitImplicit(Nullable<(Of <<'(Int16>)>>) to JToken)
Performs an implicit conversion from Nullable<(Of <(<'T>)>)> to JToken.

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

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

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

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

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

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

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

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

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

IsValid(JToken, JsonSchema)
Determines whether the JToken is valid.
(Inherited from Extensions.)
IsValid(JToken, JsonSchema, IList<(Of <<'(String>)>>)%)
Determines whether the JToken is valid.
(Inherited from Extensions.)
Item[([( Object])])
Gets the JToken with the specified key.

Last
Get the last child token of this token.

Load(JsonReader)
Creates a JToken from a JsonReader.

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.

Parse(String)
Load a JToken from a string that contains JSON.

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.

ToObject<(Of <<'(T>)>>)()()()()
Creates the specified .NET type from the JToken.

ToObject<(Of <<'(T>)>>)(JsonSerializer)
Creates the specified .NET type from the JToken using the specified JsonSerializer.

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.

Validate(JToken, JsonSchema)
Validates the specified JToken.
(Inherited from Extensions.)
Validate(JToken, JsonSchema, ValidationEventHandler)
Validates the specified JToken.
(Inherited from Extensions.)
Value<(Of <<'(T>)>>)(Object)
Gets the JToken with the specified key converted to the specified type.

Value<(Of <<'(U>)>>)(IEnumerable<(Of <<'(JToken>)>>))
Converts the value.
(Inherited from Extensions.)
Value<(Of <<'(T, U>)>>)(IEnumerable<(Of <<'(T>)>>))
Converts the value.
(Inherited from Extensions.)
Values<(Of <<'(T>)>>)()()()()
Returns a collection of the child values of this token, in document order.

Values(IEnumerable<(Of <<'(JToken>)>>), Object)
Returns a collection of child values of every object in the source collection with the given key.
(Inherited from Extensions.)
Values(IEnumerable<(Of <<'(JToken>)>>))
Returns a collection of child values of every object in the source collection.
(Inherited from Extensions.)
Values<(Of <<'(U>)>>)(IEnumerable<(Of <<'(JToken>)>>), Object)
Returns a collection of converted child values of every object in the source collection with the given key.
(Inherited from Extensions.)
WriteTo(JsonWriter, array<JsonConverter>[]()[][])
Writes this token to a JsonWriter.

Inheritance Hierarchy
Object
JToken
  JContainer
  JValue

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)