GetInteger( ) method (JsonArray)

Gets the JSON number value of one or more elements as an INTEGER or INTEGER array.

Return type: INTEGER

Access: PUBLIC

Applies to: Progress.Json.ObjectModel.JsonArray class

Syntax

GetInteger( INPUT index AS INTEGER )

GetInteger( INPUT index AS INTEGER,
            INPUT count AS INTEGER )

When this method is called with one parameter, the value of a single element is returned. Using two parameters directs the AVM to return an ABL array consisting of count elements.

index
An integer value of the element to be returned. Indexing into JsonArrays is 1-based.
count
An integer value specifying the number of elements, starting with the element at index, to be returned in the ABL array.

A JsonError is raised if: