comp • gb.web • jsoncollection

JSONCollection (gb.web)

This class represents a JSON object.

It is a collection that allows to associate a Null value with a key, which is not possible with a standard Gambas collection.

It is used by the JSON.Decode() method when its UseNull argument is set.

This class inherits Collection in gb.
This class is
Creates a new collection.
creatable
.
This class acts like a
Returns the value associated with Key.
read
/
Associates a value with Key.
write
array.
This class is
Enumerates each value stored in the collection.
enumerable
with the FOR EACH keyword.

Properties

Methods
Returns the number of elements stored in the collection.
Count  
Return or set the collection default value that is returned when no value is associated with a key.
Default  
Returns the key of the first element of the collection, or NULL if the collection is void.
First  
Returns the key of the last read or last enumerated element.
Key  
Returns the key of the last element of the collection, or NULL if the collection is void.
Last  
Returns the number of elements stored in the collection.
Length  
Adds an element to the collection.
Add  
Clears the collection.
Clear  
Copy  
Returns if something is associated with this key in the collection.
Exist  
Removes an element from the collection.
Remove