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.

Questa classe eredita Collection in gb.

Questa classe è creabile.

Questa classe si comporta come un lettura / scrittura array.

Questa classe è enumerabile con la parola chiave FOR EACH.

Proprietà ereditate
Count   Returns the number of elements stored in the collection.
Default   Return or set the collection default value that is returned when no value is associated with a key.
Empty   Return if the collection is empty.
First   Returns the key of the first element inserted in the collection, or NULL if the collection is void.
Key   Returns the key of the last read or last enumerated element.
Keys   Return a string array of all collection keys.
Last   Returns the key of the last element inserted in the collection, or NULL if the collection is void.
Length   Returns the number of elements stored in the collection.

Metodi
Copy  

Metodi ereditati
Add   Adds an element to the collection.
Clear   Clears the collection.
Exist   Returns if something is associated with this key in the collection.
Remove   Removes an element from the collection.