JSON Array (PRIM_WEB.JsonArray)

JSON array

Ancestors - JSON Element (PRIM_WEB.JsonElement)Object (PRIM_OBJT)

Details

A JSON Array element collects other JSON elements.
 
These can be added using the InsertXxxxx methods.

Properties

Name Description
ComponentClassName ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembers ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternName ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTag Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentType ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeName ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
Index Index of the element Inherited from JSON Element (PRIM_WEB.JsonElement)
Item Access a specific element Inherited from JSON Element (PRIM_WEB.JsonElement)
ItemAt Access a specific child element Inherited from JSON Element (PRIM_WEB.JsonElement)
ItemCount Number of child elements Inherited from JSON Element (PRIM_WEB.JsonElement)
Key Key of the element Inherited from JSON Element (PRIM_WEB.JsonElement)
Name Name identifies the component Inherited from Object (PRIM_OBJT)
Owner Owner owns this component Inherited from Object (PRIM_OBJT)
Parent The component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
ParentItem Reference to the parent element Inherited from JSON Element (PRIM_WEB.JsonElement)
Type Type of element e.g. Array, number, string etc. Inherited from JSON Element (PRIM_WEB.JsonElement)

Events

Name Description
CreateInstance CreateInstance is signalled when an instance of a component is created Inherited from JSON Element (PRIM_WEB.JsonElement)
DestroyInstance DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from JSON Element (PRIM_WEB.JsonElement)

Methods

Name Description
AsBoolean Return the element as a Boolean Inherited from JSON Element (PRIM_WEB.JsonElement)
Result
AsNumber Return the element as a number Inherited from JSON Element (PRIM_WEB.JsonElement)
Result
AsString Return the element as a string Inherited from JSON Element (PRIM_WEB.JsonElement)
Result
CreateIterator CreateIterator method creates an iterator component that enables iteration through the collection Inherited from JSON Element (PRIM_WEB.JsonElement)
Result
InsertArray Add an array element
Result
InsertBoolean Add a Boolean to the array
Result, Boolean
InsertNull Add a null to the array
Result
InsertNumber Add a number to the array
Result, Number
InsertObject Add an object to the array
Result
InsertString Add a string to the array
Result, String
Remove Remove the element Inherited from JSON Element (PRIM_WEB.JsonElement)
Result, Key
RemoveAll Remove all child elements Inherited from JSON Element (PRIM_WEB.JsonElement)
RemoveAt Remove a specific element Inherited from JSON Element (PRIM_WEB.JsonElement)
Result, Index

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020