Documentation de Gambas - /comp/gb.web/jsoncollection

/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.

Cette classe hérite Collection dans gb.
Cette classe est
Creates a new collection.
instanciable
.
Cette classe se comporte comme un tableau en
Returns the value associated with Key.
lecture
/
Associates a value with Key.
écriture
.
Cette classe est
Enumerates each value stored in the collection.
énumérable
à l'aide du mot-clef FOR EACH.

Propriétés | Méthodes
--- | ---
Returns the number of elements stored in the collection. Count Returns the key of the last read or last enumerated element. Key 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