Table of Contents

Class JToken

Namespace
Dynamicweb.Core.Json
Assembly
Dynamicweb.Core.dll
Wrapper for Newtonsoft.Json.Linq.JToken: Only use to fix legacy issues. Never use in new code!
public class JToken : IEnumerable<JToken>, IEnumerable, ICloneable
Inheritance
JToken
Implements
Inherited Members
Extension Methods

Properties

First

public virtual JToken First { get; }

Property Value

JToken

HasValues

public virtual bool HasValues { get; }

Property Value

bool

this[object]

public virtual IEnumerable<JToken> this[object key] { get; }

Parameters

key object

Property Value

IEnumerable<JToken>

Last

public virtual JToken Last { get; }

Property Value

JToken

Next

public JToken Next { get; }

Property Value

JToken

Path

public string Path { get; }

Property Value

string

Previous

public JToken Previous { get; }

Property Value

JToken

Root

public JToken Root { get; }

Property Value

JToken

Type

public virtual JTokenType Type { get; }

Property Value

JTokenType

Methods

AddAfterSelf(object)

public void AddAfterSelf(object content)

Parameters

content object

AddAnnotation(object)

public void AddAnnotation(object annotation)

Parameters

annotation object

AddBeforeSelf(object)

public void AddBeforeSelf(object content)

Parameters

content object

Children()

public virtual IEnumerable<JToken> Children()

Returns

IEnumerable<JToken>

Clone()

public object Clone()

Returns

object

DeepEquals(JToken, JToken)

public static bool DeepEquals(JToken t1, JToken t2)

Parameters

t1 JToken
t2 JToken

Returns

bool

FromObject(object)

public static JToken FromObject(object o)

Parameters

o object

Returns

JToken

GetEnumerator()

public IEnumerator<JToken> GetEnumerator()

Returns

IEnumerator<JToken>

Parse(string)

public static JToken Parse(string json)

Parameters

json string

Returns

JToken

ToObject(Type)

public virtual object ToObject(Type objectType)

Parameters

objectType Type

Returns

object

ToObject<T>()

public virtual T ToObject<T>()

Returns

T

Type Parameters

T

Value<T>(object)

public virtual T Value<T>(object key)

Parameters

key object

Returns

T

Type Parameters

T

Values<T>()

public virtual IEnumerable<T> Values<T>()

Returns

IEnumerable<T>

Type Parameters

T
To top