JsonObject
Overview
JSON Object node containing key; value pairs.
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
- Ancestry: JsonNode | JsonObject
constructor .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
constructor
JsonObject()
init()
JsonObject()
Sub New()
constructor init() Toffee
init(init )
Parameters:
- :
constructor (Dictionary<String, JsonNode>)
constructor(aItems: Dictionary<String, JsonNode>)
JsonObject(Dictionary<String, JsonNode> aItems)
init(_ aItems: Dictionary<String, JsonNode>)
JsonObject(Dictionary<String, JsonNode> aItems)
Sub New(aItems As Dictionary<String, JsonNode>)
Parameters:
- aItems:
Add
Add an entry to the object.
Parameters:
- aKey:
- aValue:
BooleanValue virtual (declared in JsonNode)
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; }
Property BooleanValue() As Boolean
Clear .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Clear the object.
method Clear
void Clear()
func Clear()
void Clear()
Sub Clear()
Clear Clear() virtual Toffee
func Clear(Clear )
Parameters:
- :
ContainsExplicitJsonNullValueForKey
Check to see if this object contains an explicit null value for a key.
Parameters:
- aKey:
ContainsKey
Check to see if this object contains a key.
Parameters:
- aKey:
Count override
Returns the nr of elements in this obejct.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
Integer Count { __get; }
ReadOnly Property Count() As Int32
Create a new array node.
// Toffee
static func Create(_ aValue: JsonNode...) -> JsonArray
// ToffeeV2
static func Create(_ aValue: JsonNode...?) -> JsonArray?
static JsonArray Create(JsonNode[] aValue)
Parameters:
- aValue:
Create (nullable Boolean): nullable JsonBooleanValue (declared in JsonNode)
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?
static JsonBooleanValue Create(Boolean aValue)
Shared Function Create(aValue As Boolean?) As JsonBooleanValue?
Parameters:
- aValue:
Create (nullable Dictionary<String, JsonNode>): nullable JsonObject (declared in JsonNode)
Create a new object node.
class method Create(aValue: nullable Dictionary<String, JsonNode>): nullable JsonObject
static JsonObject? Create(Dictionary<String, JsonNode>? aValue)
// Toffee
static func Create(_ aValue: Dictionary<String, JsonNode>) -> JsonObject
// ToffeeV2
static func Create(_ aValue: Dictionary<String, JsonNode>?) -> JsonObject?
static JsonObject Create(Dictionary<String, JsonNode> aValue)
Shared Function Create(aValue As Dictionary<String, JsonNode>?) As JsonObject?
Parameters:
- aValue:
Create (nullable Double): nullable JsonFloatValue (declared in JsonNode)
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?
static JsonFloatValue Create(Double aValue)
Shared Function Create(aValue As Double?) As JsonFloatValue?
Parameters:
- aValue:
Create (nullable Int64): nullable JsonIntegerValue (declared in JsonNode)
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?
static JsonIntegerValue Create(Long aValue)
Shared Function Create(aValue As Int64?) As JsonIntegerValue?
Parameters:
- aValue:
Create a new array node.
Parameters:
- aValue:
Create (nullable String): nullable JsonStringValue (declared in JsonNode)
Create a new string node,.
class method Create(aValue: nullable String): nullable JsonStringValue
static JsonStringValue? Create(String? aValue)
// Toffee
static func Create(_ aValue: String) -> JsonStringValue
// ToffeeV2
static func Create(_ aValue: String?) -> JsonStringValue?
static JsonStringValue Create(String aValue)
Shared Function Create(aValue As String?) As JsonStringValue?
Parameters:
- aValue:
description override (declared in JsonNode) ToffeeV2
Returns the string representation of this node.
func description() -> NSString
description description(): NSString override (declared in JsonNode) Toffee
func description(description ) -> NSString
Parameters:
- :
FloatValue virtual (declared in JsonNode)
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; }
Property FloatValue() As Double
GetSequence virtual Toffee
func GetSequence(GetSequence ) -> INSFastEnumeration<tuple of (String, JsonNode)>
Parameters:
- :
IntegerValue virtual (declared in JsonNode)
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; }
Property IntegerValue() As Int64
Item override Island, Toffee
Item override Island, Toffee
Item override Island, Toffee
Item override
Access an element by index.
Item override Island, Toffee
Item virtual (declared in JsonNode)
Access an element node by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
iterator Cooper
Keys override
Iterator for keys.
property Keys: not nullable IEnumerable<String> read;
IEnumerable<String>! Keys { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var Keys: IEnumerable<String> { get{} }
// Toffee
var Keys: INSFastEnumeration<String> { get{} }
ReadOnly Property Keys() As IEnumerable<String>
Load
Load this value as a string.
class method Load(JsonString: String): JsonObject
static JsonObject Load(String JsonString)
static func Load(_ JsonString: String) -> JsonObject
static JsonObject Load(String JsonString)
Shared Function Load(JsonString As String) As JsonObject
Parameters:
- JsonString:
Properties
Properties sequences, contains both keys and values.
property Properties: IEnumerable<tuple of (String, JsonNode)> read;
IEnumerable<tuple of (String, JsonNode)> Properties { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, ToffeeV2
var Properties: IEnumerable<(String, JsonNode)> { get{} }
// Island
var Properties: IEnumerable<tuple of (String, JsonNode)> { get{} }
// Toffee
var Properties: INSFastEnumeration<tuple of (String, JsonNode)> { get{} }
ReadOnly Property Properties() As IEnumerable<tuple of (String, JsonNode)>
Remove
Remove an item by name.
Parameters:
- aKey:
StringValue virtual (declared in JsonNode)
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; }
Property StringValue() As String
ToJson override
method ToJson(aFormat: JsonFormat): String
String ToJson(JsonFormat aFormat)
func ToJson(_ aFormat: JsonFormat) -> String
String ToJson(JsonFormat aFormat)
Function ToJson(aFormat As JsonFormat) As String
Parameters:
- aFormat:
toString (declared in JsonNode) Cooper
method toString: PlatformString
PlatformString toString()
func toString() -> PlatformString
PlatformString toString()
Function toString() As PlatformString
ToString virtual (declared in JsonNode) .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
Returns the string representation of this node.
method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString
func ToString(ToString ) -> String
Parameters:
- :
BooleanValue virtual (declared in JsonNode)
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; }
Property BooleanValue() As Boolean
Count override
Returns the nr of elements in this obejct.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
Integer Count { __get; }
ReadOnly Property Count() As Int32
FloatValue virtual (declared in JsonNode)
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; }
Property FloatValue() As Double
IntegerValue virtual (declared in JsonNode)
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; }
Property IntegerValue() As Int64
Item override Island, Toffee
Item override Island, Toffee
Item override Island, Toffee
Item override
Access an element by index.
Item override Island, Toffee
Item virtual (declared in JsonNode)
Access an element node by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
Item override .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, ToffeeV2
Access an element by index.
Keys override
Iterator for keys.
property Keys: not nullable IEnumerable<String> read;
IEnumerable<String>! Keys { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var Keys: IEnumerable<String> { get{} }
// Toffee
var Keys: INSFastEnumeration<String> { get{} }
ReadOnly Property Keys() As IEnumerable<String>
Properties
Properties sequences, contains both keys and values.
property Properties: IEnumerable<tuple of (String, JsonNode)> read;
IEnumerable<tuple of (String, JsonNode)> Properties { get; }
// .NET, .NET Core 6.0, .NET Standard 2.0, ToffeeV2
var Properties: IEnumerable<(String, JsonNode)> { get{} }
// Island
var Properties: IEnumerable<tuple of (String, JsonNode)> { get{} }
// Toffee
var Properties: INSFastEnumeration<tuple of (String, JsonNode)> { get{} }
ReadOnly Property Properties() As IEnumerable<tuple of (String, JsonNode)>
StringValue virtual (declared in JsonNode)
Returns the string representation of this node.
Create a new array node.
// Toffee
static func Create(_ aValue: JsonNode...) -> JsonArray
// ToffeeV2
static func Create(_ aValue: JsonNode...?) -> JsonArray?
static JsonArray Create(JsonNode[] aValue)
Parameters:
- aValue:
Create (nullable Boolean): nullable JsonBooleanValue (declared in JsonNode)
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?
static JsonBooleanValue Create(Boolean aValue)
Shared Function Create(aValue As Boolean?) As JsonBooleanValue?
Parameters:
- aValue:
Create (nullable Dictionary<String, JsonNode>): nullable JsonObject (declared in JsonNode)
Create a new object node.
class method Create(aValue: nullable Dictionary<String, JsonNode>): nullable JsonObject
static JsonObject? Create(Dictionary<String, JsonNode>? aValue)
// Toffee
static func Create(_ aValue: Dictionary<String, JsonNode>) -> JsonObject
// ToffeeV2
static func Create(_ aValue: Dictionary<String, JsonNode>?) -> JsonObject?
static JsonObject Create(Dictionary<String, JsonNode> aValue)
Shared Function Create(aValue As Dictionary<String, JsonNode>?) As JsonObject?
Parameters:
- aValue:
Create (nullable Double): nullable JsonFloatValue (declared in JsonNode)
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?
static JsonFloatValue Create(Double aValue)
Shared Function Create(aValue As Double?) As JsonFloatValue?
Parameters:
- aValue:
Create (nullable Int64): nullable JsonIntegerValue (declared in JsonNode)
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?
static JsonIntegerValue Create(Long aValue)
Shared Function Create(aValue As Int64?) As JsonIntegerValue?
Parameters:
- aValue:
Create a new array node.
Parameters:
- aValue:
Create (nullable String): nullable JsonStringValue (declared in JsonNode)
Create a new string node,.
class method Create(aValue: nullable String): nullable JsonStringValue
static JsonStringValue? Create(String? aValue)
// Toffee
static func Create(_ aValue: String) -> JsonStringValue
// ToffeeV2
static func Create(_ aValue: String?) -> JsonStringValue?
static JsonStringValue Create(String aValue)
Shared Function Create(aValue As String?) As JsonStringValue?
Parameters:
- aValue:
Load
Load this value as a string.
class method Load(JsonString: String): JsonObject
static JsonObject Load(String JsonString)
static func Load(_ JsonString: String) -> JsonObject
static JsonObject Load(String JsonString)
Shared Function Load(JsonString As String) As JsonObject
Parameters:
- JsonString:
constructor .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
constructor
JsonObject()
init()
JsonObject()
Sub New()
constructor init() Toffee
init(init )
Parameters:
- :
constructor (Dictionary<String, JsonNode>)
constructor(aItems: Dictionary<String, JsonNode>)
JsonObject(Dictionary<String, JsonNode> aItems)
init(_ aItems: Dictionary<String, JsonNode>)
JsonObject(Dictionary<String, JsonNode> aItems)
Sub New(aItems As Dictionary<String, JsonNode>)
Parameters:
- aItems:
Add
Add an entry to the object.
Parameters:
- aKey:
- aValue:
Clear .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
Clear the object.
method Clear
void Clear()
func Clear()
void Clear()
Sub Clear()
Clear Clear() virtual Toffee
func Clear(Clear )
Parameters:
- :
ContainsExplicitJsonNullValueForKey
Check to see if this object contains an explicit null value for a key.
Parameters:
- aKey:
ContainsKey
Check to see if this object contains a key.
Parameters:
- aKey:
description override (declared in JsonNode) ToffeeV2
Returns the string representation of this node.
func description() -> NSString
description description(): NSString override (declared in JsonNode) Toffee
func description(description ) -> NSString
Parameters:
- :
GetSequence virtual Toffee
func GetSequence(GetSequence ) -> INSFastEnumeration<tuple of (String, JsonNode)>
Parameters:
- :
iterator Cooper
Remove
Remove an item by name.
Parameters:
- aKey:
ToJson override
method ToJson(aFormat: JsonFormat): String
String ToJson(JsonFormat aFormat)
func ToJson(_ aFormat: JsonFormat) -> String
String ToJson(JsonFormat aFormat)
Function ToJson(aFormat As JsonFormat) As String
Parameters:
- aFormat:
toString (declared in JsonNode) Cooper
method toString: PlatformString
PlatformString toString()
func toString() -> PlatformString
PlatformString toString()
Function toString() As PlatformString
ToString virtual (declared in JsonNode) .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
Returns the string representation of this node.
method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString
func ToString(ToString ) -> String
Parameters:
- :