API reference

JsonNode Class

Base class for all JSON nodes.
Replaces Newtonsoft.Json.Linq.JToken.

Properties

this[int index] : JsonNode
[Get]
Signature
virtual JsonNode this[int index]
this[string key] : JsonNode
[Get][Set]
Signature
virtual JsonNode this[string key]
Type : abstract JsonNodeType
[Get]
Signature
abstract JsonNodeType Type

Methods

ToJsonString ( indented , depth )
Signature
abstract string ToJsonString(bool indented=false, int depth=0)
Parameters
indented: bool
depth: int
Returns
abstract string
ToObject ( targetType )
Signature
virtual object ToObject(Type targetType)
Parameters
targetType: Type
Returns
object
ToObject< T > ()
Signature
T ToObject< T >()
Returns
T
ToString ()
Signature
override string ToString()
Returns
override string
ToString ( formatting )
Signature
string ToString(JsonFormatting formatting)
Parameters
formatting: JsonFormatting
Returns
string
Value< T > ()
Signature
T Value< T >()
Returns
T

Static Methods

FromObject ( value )
Signature
static JsonNode FromObject(object value)
Parameters
value: object
Returns
JsonNode
operator JsonNode ( value )
Signature
static implicit operator JsonNode(string value)
Parameters
value: string
Returns
implicit
operator JsonNode ( value )
Signature
static implicit operator JsonNode(int value)
Parameters
value: int
Returns
implicit
operator JsonNode ( value )
Signature
static implicit operator JsonNode(long value)
Parameters
value: long
Returns
implicit
operator JsonNode ( value )
Signature
static implicit operator JsonNode(double value)
Parameters
value: double
Returns
implicit
operator JsonNode ( value )
Signature
static implicit operator JsonNode(float value)
Parameters
value: float
Returns
implicit
operator JsonNode ( value )
Signature
static implicit operator JsonNode(bool value)
Parameters
value: bool
Returns
implicit
operator JsonNode ( value )
Signature
static implicit operator JsonNode(decimal value)
Parameters
value: decimal
Returns
implicit
Parse ( json )
Signature
static JsonNode Parse(string json)
Parameters
json: string
Returns
JsonNode