JsonNode

Overview

Base class for json nodes.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL

Descendants

 

BooleanValue  virtual

Returns this value as boolean. Fails if the type mismatches.

 

property BooleanValue: Boolean read write;

 

Boolean BooleanValue { get; set; }

 

var BooleanValue: Boolean { get{} set{} }

 

Boolean BooleanValue { __get; __set; }

Count  virtual

Returns the nr of elements in this node.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

Create (array of JsonNode): JsonArray  virtual Cooper, Toffee

Create a new array node.

 

static func Create(_ aValue: JsonNode...) -> JsonArray

 

static JsonArray Create(JsonNode[] aValue)

Parameters:

  • aValue:

Create (Boolean): JsonBooleanValue Cooper

Create a new boolean node.

 

class method Create(aValue: Boolean): JsonBooleanValue

 

static JsonBooleanValue Create(Boolean aValue)

 

static func Create(_ aValue: Boolean) -> JsonBooleanValue

 

static JsonBooleanValue Create(Boolean aValue)

Parameters:

  • aValue:

Create (Dictionary<String, JsonNode>): JsonObject  virtual Cooper, Toffee

Create a new object node.

 

static func Create(_ aValue: Dictionary<String, JsonNode>) -> JsonObject

 

static JsonObject Create(Dictionary<String, JsonNode> aValue)

Parameters:

  • aValue:

Create (Double): JsonFloatValue Cooper

Create a new double node.

 

class method Create(aValue: Double): JsonFloatValue

 

static JsonFloatValue Create(Double aValue)

 

static func Create(_ aValue: Double) -> JsonFloatValue

 

static JsonFloatValue Create(Double aValue)

Parameters:

  • aValue:

Create (List<JsonNode>): JsonArray  virtual Cooper, Toffee

Create a new array node.

 

static func Create(_ aValue: List<JsonNode>) -> JsonArray

 

static JsonArray Create(List<JsonNode> aValue)

Parameters:

  • aValue:

Create (Long): JsonIntegerValue Cooper

Create a new integer node.

 

class method Create(aValue: Long): JsonIntegerValue

 

static JsonIntegerValue Create(Long aValue)

 

static func Create(_ aValue: Long) -> JsonIntegerValue

 

static JsonIntegerValue Create(Long aValue)

Parameters:

  • aValue:

Create (nullable Boolean): nullable JsonBooleanValue .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Create a new boolean node.

 

class method Create(aValue: nullable Boolean): nullable JsonBooleanValue

 

static JsonBooleanValue? Create(Boolean? aValue)

 

// Toffee
static func Create(_ aValue: Boolean!) -> JsonBooleanValue
// ToffeeV2
static func Create(_ aValue: Boolean!) -> JsonBooleanValue?

Parameters:

  • aValue:

Create (nullable Double): nullable JsonFloatValue .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Create a new double node.

 

class method Create(aValue: nullable Double): nullable JsonFloatValue

 

static JsonFloatValue? Create(Double? aValue)

 

// Toffee
static func Create(_ aValue: Double!) -> JsonFloatValue
// ToffeeV2
static func Create(_ aValue: Double!) -> JsonFloatValue?

Parameters:

  • aValue:

Create (nullable Int64): nullable JsonIntegerValue .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Create a new int64 node.

 

class method Create(aValue: nullable Int64): nullable JsonIntegerValue

 

static JsonIntegerValue? Create(Int64? aValue)

 

// Toffee
static func Create(_ aValue: Int64!) -> JsonIntegerValue
// ToffeeV2
static func Create(_ aValue: Int64!) -> JsonIntegerValue?

Parameters:

  • aValue:

Create (String): JsonStringValue  virtual Cooper, Toffee

Create a new string node,.

 

static func Create(_ aValue: String) -> JsonStringValue

 

static JsonStringValue Create(String aValue)

Parameters:

  • aValue:

Create (nullable array of JsonNode): nullable JsonArray .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new array node.

 

class method Create(aValue: nullable array of JsonNode): nullable JsonArray

 

static JsonArray? Create(JsonNode[]? aValue)

 

static func Create(_ aValue: JsonNode...?) -> JsonArray?

Parameters:

  • aValue:

Create (nullable Dictionary<String, JsonNode>): nullable JsonObject .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new object node.

 

class method Create(aValue: nullable Dictionary<String, JsonNode>): nullable JsonObject

 

static JsonObject? Create(Dictionary<String, JsonNode>? aValue)

 

static func Create(_ aValue: Dictionary<String, JsonNode>?) -> JsonObject?

Parameters:

  • aValue:

Create (nullable List<JsonNode>): nullable JsonArray .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new array node.

 

// .NET, .NET Standard 2.0, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator, Island-Windows
class method Create(aValue: nullable List<JsonNode>): nullable JsonArray
// Island-WebAssembly-wasm32
class method Create(aValue: nullable List<JsonNode>): nullable JsonArray

 

// .NET, .NET Standard 2.0, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator, Island-Windows
static JsonArray? Create(List<JsonNode>? aValue)
// Island-WebAssembly-wasm32
static JsonArray? Create(List<JsonNode>? aValue)

 

static func Create(_ aValue: List<JsonNode>?) -> JsonArray?

Parameters:

  • aValue:

Create (nullable String): nullable JsonStringValue .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new string node.

 

class method Create(aValue: nullable String): nullable JsonStringValue

 

static JsonStringValue? Create(String? aValue)

 

static func Create(_ aValue: String?) -> JsonStringValue?

Parameters:

  • aValue:

description  override Toffee, ToffeeV2

Returns the string representation of this node.

 

func description() -> NSString

FloatValue  virtual

Returns the value of this node as float.

 

property FloatValue: Double read write;

 

Double FloatValue { get; set; }

 

var FloatValue: Double { get{} set{} }

 

Double FloatValue { __get; __set; }

IntegerValue  virtual

Returns the value of this node as integer.

 

property IntegerValue: Int64 read write;

 

Int64 IntegerValue { get; set; }

 

var IntegerValue: Int64 { get{} set{} }

 

Int64 IntegerValue { __get; __set; }

Item  virtual

Access an element node by index.

 

property Item[Index: Int32]: not nullable JsonNode read write;

 

JsonNode! Item[Int32 Index] { get; set; }

 

subscript Item(_ Index: Int32) -> JsonNode { get{} set{} }

 

JsonNode! Item[Integer Index] { __get; __set; }

Item  virtual

Access an element by name.

 

property Item[aKey: not nullable String]: Boolean write;

 

Boolean Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Boolean { set{} }

 

Boolean Item[String! aKey] { __set; }

Item  virtual

Access an element by name.

 

property Item[aKey: not nullable String]: Double write;

 

Double Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Double { set{} }

 

Double Item[String! aKey] { __set; }

Item  virtual

Access an element by name.

 

property Item[aKey: not nullable String]: Int32 write;

 

Int32 Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Int32 { set{} }

 

Integer Item[String! aKey] { __set; }

Item  virtual Cooper, Toffee

Access an element by name.

 

subscript Item(_ Key: String) -> JsonNode { get{} set{} }

 

JsonNode Item[String! Key] { __get; __set; }

Item  virtual Cooper, Toffee

Access an element by name.

 

subscript Item(_ aKey: String) -> String { set{} }

 

String Item[String! aKey] { __set; }

Item  virtual .NET, .NET Standard 2.0, Island, ToffeeV2

Access an element by name.

 

property Item[Key: not nullable String]: nullable JsonNode read write;

 

JsonNode? Item[String! Key] { get; set; }

 

subscript Item(_ Key: String) -> JsonNode? { get{} set{} }

Item  virtual .NET, .NET Standard 2.0, Island, ToffeeV2

Access an element by name.

 

property Item[aKey: not nullable String]: nullable String write;

 

String? Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> String? { set{} }

Keys  virtual

Returns all keys in this node.

 

property Keys: not nullable IEnumerable<String> read;

 

IEnumerable<String>! Keys { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Keys: IEnumerable<String> { get{} }
// Toffee
var Keys: INSFastEnumeration<String> { get{} }

 

Iterable<String>! Keys { __get; }

StringValue  virtual

Returns the string representation of this node.

 

property StringValue: String read write;

 

String StringValue { get; set; }

 

var StringValue: String { get{} set{} }

 

String StringValue { __get; __set; }

ToJson  virtual abstract

Returns the string representation of this node.

 

method ToJson: String

 

String ToJson()

 

func ToJson() -> String

 

String ToJson()

ToString  virtual

Returns the string representation of this node.

 

method ToString: PlatformString

 

PlatformString ToString()

 

func ToString() -> String

 

PlatformString ToString()

 

BooleanValue  virtual

Returns this value as boolean. Fails if the type mismatches.

 

property BooleanValue: Boolean read write;

 

Boolean BooleanValue { get; set; }

 

var BooleanValue: Boolean { get{} set{} }

 

Boolean BooleanValue { __get; __set; }

Count  virtual

Returns the nr of elements in this node.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

FloatValue  virtual

Returns the value of this node as float.

 

property FloatValue: Double read write;

 

Double FloatValue { get; set; }

 

var FloatValue: Double { get{} set{} }

 

Double FloatValue { __get; __set; }

IntegerValue  virtual

Returns the value of this node as integer.

 

property IntegerValue: Int64 read write;

 

Int64 IntegerValue { get; set; }

 

var IntegerValue: Int64 { get{} set{} }

 

Int64 IntegerValue { __get; __set; }

Item  virtual

Access an element node by index.

 

property Item[Index: Int32]: not nullable JsonNode read write;

 

JsonNode! Item[Int32 Index] { get; set; }

 

subscript Item(_ Index: Int32) -> JsonNode { get{} set{} }

 

JsonNode! Item[Integer Index] { __get; __set; }

Item  virtual

Access an element by name.

 

property Item[aKey: not nullable String]: Boolean write;

 

Boolean Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Boolean { set{} }

 

Boolean Item[String! aKey] { __set; }

Item  virtual

Access an element by name.

 

property Item[aKey: not nullable String]: Double write;

 

Double Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Double { set{} }

 

Double Item[String! aKey] { __set; }

Item  virtual

Access an element by name.

 

property Item[aKey: not nullable String]: Int32 write;

 

Int32 Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> Int32 { set{} }

 

Integer Item[String! aKey] { __set; }

Item  virtual Cooper, Toffee

Access an element by name.

 

subscript Item(_ Key: String) -> JsonNode { get{} set{} }

 

JsonNode Item[String! Key] { __get; __set; }

Item  virtual Cooper, Toffee

Access an element by name.

 

subscript Item(_ aKey: String) -> String { set{} }

 

String Item[String! aKey] { __set; }

Item  virtual .NET, .NET Standard 2.0, Island, ToffeeV2

Access an element by name.

 

property Item[Key: not nullable String]: nullable JsonNode read write;

 

JsonNode? Item[String! Key] { get; set; }

 

subscript Item(_ Key: String) -> JsonNode? { get{} set{} }

Item  virtual .NET, .NET Standard 2.0, Island, ToffeeV2

Access an element by name.

 

property Item[aKey: not nullable String]: nullable String write;

 

String? Item[String! aKey] { set; }

 

subscript Item(_ aKey: String) -> String? { set{} }

Keys  virtual

Returns all keys in this node.

 

property Keys: not nullable IEnumerable<String> read;

 

IEnumerable<String>! Keys { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Keys: IEnumerable<String> { get{} }
// Toffee
var Keys: INSFastEnumeration<String> { get{} }

 

Iterable<String>! Keys { __get; }

StringValue  virtual

Returns the string representation of this node.

 

property StringValue: String read write;

 

String StringValue { get; set; }

 

var StringValue: String { get{} set{} }

 

String StringValue { __get; __set; }

 

Create (array of JsonNode): JsonArray  virtual Cooper, Toffee

Create a new array node.

 

static func Create(_ aValue: JsonNode...) -> JsonArray

 

static JsonArray Create(JsonNode[] aValue)

Parameters:

  • aValue:

Create (Boolean): JsonBooleanValue Cooper

Create a new boolean node.

 

class method Create(aValue: Boolean): JsonBooleanValue

 

static JsonBooleanValue Create(Boolean aValue)

 

static func Create(_ aValue: Boolean) -> JsonBooleanValue

 

static JsonBooleanValue Create(Boolean aValue)

Parameters:

  • aValue:

Create (Dictionary<String, JsonNode>): JsonObject  virtual Cooper, Toffee

Create a new object node.

 

static func Create(_ aValue: Dictionary<String, JsonNode>) -> JsonObject

 

static JsonObject Create(Dictionary<String, JsonNode> aValue)

Parameters:

  • aValue:

Create (Double): JsonFloatValue Cooper

Create a new double node.

 

class method Create(aValue: Double): JsonFloatValue

 

static JsonFloatValue Create(Double aValue)

 

static func Create(_ aValue: Double) -> JsonFloatValue

 

static JsonFloatValue Create(Double aValue)

Parameters:

  • aValue:

Create (List<JsonNode>): JsonArray  virtual Cooper, Toffee

Create a new array node.

 

static func Create(_ aValue: List<JsonNode>) -> JsonArray

 

static JsonArray Create(List<JsonNode> aValue)

Parameters:

  • aValue:

Create (Long): JsonIntegerValue Cooper

Create a new integer node.

 

class method Create(aValue: Long): JsonIntegerValue

 

static JsonIntegerValue Create(Long aValue)

 

static func Create(_ aValue: Long) -> JsonIntegerValue

 

static JsonIntegerValue Create(Long aValue)

Parameters:

  • aValue:

Create (nullable Boolean): nullable JsonBooleanValue .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Create a new boolean node.

 

class method Create(aValue: nullable Boolean): nullable JsonBooleanValue

 

static JsonBooleanValue? Create(Boolean? aValue)

 

// Toffee
static func Create(_ aValue: Boolean!) -> JsonBooleanValue
// ToffeeV2
static func Create(_ aValue: Boolean!) -> JsonBooleanValue?

Parameters:

  • aValue:

Create (nullable Double): nullable JsonFloatValue .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Create a new double node.

 

class method Create(aValue: nullable Double): nullable JsonFloatValue

 

static JsonFloatValue? Create(Double? aValue)

 

// Toffee
static func Create(_ aValue: Double!) -> JsonFloatValue
// ToffeeV2
static func Create(_ aValue: Double!) -> JsonFloatValue?

Parameters:

  • aValue:

Create (nullable Int64): nullable JsonIntegerValue .NET, .NET Standard 2.0, Island, Toffee, ToffeeV2

Create a new int64 node.

 

class method Create(aValue: nullable Int64): nullable JsonIntegerValue

 

static JsonIntegerValue? Create(Int64? aValue)

 

// Toffee
static func Create(_ aValue: Int64!) -> JsonIntegerValue
// ToffeeV2
static func Create(_ aValue: Int64!) -> JsonIntegerValue?

Parameters:

  • aValue:

Create (String): JsonStringValue  virtual Cooper, Toffee

Create a new string node,.

 

static func Create(_ aValue: String) -> JsonStringValue

 

static JsonStringValue Create(String aValue)

Parameters:

  • aValue:

Create (nullable array of JsonNode): nullable JsonArray .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new array node.

 

class method Create(aValue: nullable array of JsonNode): nullable JsonArray

 

static JsonArray? Create(JsonNode[]? aValue)

 

static func Create(_ aValue: JsonNode...?) -> JsonArray?

Parameters:

  • aValue:

Create (nullable Dictionary<String, JsonNode>): nullable JsonObject .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new object node.

 

class method Create(aValue: nullable Dictionary<String, JsonNode>): nullable JsonObject

 

static JsonObject? Create(Dictionary<String, JsonNode>? aValue)

 

static func Create(_ aValue: Dictionary<String, JsonNode>?) -> JsonObject?

Parameters:

  • aValue:

Create (nullable List<JsonNode>): nullable JsonArray .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new array node.

 

// .NET, .NET Standard 2.0, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator, Island-Windows
class method Create(aValue: nullable List<JsonNode>): nullable JsonArray
// Island-WebAssembly-wasm32
class method Create(aValue: nullable List<JsonNode>): nullable JsonArray

 

// .NET, .NET Standard 2.0, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-UIKit for Mac-x86_64, Island-watchOS, Island-watchOS Simulator, Island-Windows
static JsonArray? Create(List<JsonNode>? aValue)
// Island-WebAssembly-wasm32
static JsonArray? Create(List<JsonNode>? aValue)

 

static func Create(_ aValue: List<JsonNode>?) -> JsonArray?

Parameters:

  • aValue:

Create (nullable String): nullable JsonStringValue .NET, .NET Standard 2.0, Island, ToffeeV2

Create a new string node.

 

class method Create(aValue: nullable String): nullable JsonStringValue

 

static JsonStringValue? Create(String? aValue)

 

static func Create(_ aValue: String?) -> JsonStringValue?

Parameters:

  • aValue:

 

description  override Toffee, ToffeeV2

Returns the string representation of this node.

 

func description() -> NSString

ToJson  virtual abstract

Returns the string representation of this node.

 

method ToJson: String

 

String ToJson()

 

func ToJson() -> String

 

String ToJson()

ToString  virtual

Returns the string representation of this node.

 

method ToString: PlatformString

 

PlatformString ToString()

 

func ToString() -> String

 

PlatformString ToString()

Descendants