JSONCollection (gb.util.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 read / write array.
This class is 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  
Returns a copy of the collection.
Copy  
Returns if something is associated with this key in the collection.
Exist  
Removes an element from the collection.
Remove