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
HasValues
public virtual bool HasValues { get; }
Property Value
this[object]
public virtual IEnumerable<JToken> this[object key] { get; }
Parameters
key
object
Property Value
Last
public virtual JToken Last { get; }
Property Value
Next
public JToken Next { get; }
Property Value
Path
public string Path { get; }
Property Value
Previous
public JToken Previous { get; }
Property Value
Root
public JToken Root { get; }
Property Value
Type
public virtual JTokenType Type { get; }
Property Value
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
Clone()
public object Clone()
Returns
DeepEquals(JToken, JToken)
public static bool DeepEquals(JToken t1, JToken t2)
Parameters
Returns
FromObject(object)
public static JToken FromObject(object o)
Parameters
o
object
Returns
GetEnumerator()
public IEnumerator<JToken> GetEnumerator()
Returns
Parse(string)
public static JToken Parse(string json)
Parameters
json
string
Returns
ToObject(Type)
public virtual object ToObject(Type objectType)
Parameters
objectType
Type
Returns
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