util.JSONArray methods

Methods for the util.JSONArray class.

Table 1. Class methods
Name Description
util.JSONArray.create()
  RETURNS util.JSONArray
Creates a new JSON array object.
util.JSONArray.fromFGL(
   array dynamic-array-type )
  RETURNS util.JSONArray
Creates a new JSON array object from a DYNAMIC ARRAY.
util.JSONArray.parse(
   s STRING )
  RETURNS util.JSONArray
Parses a JSON string and creates a JSON array object from it.
Table 2. Object methods
Name Description
util.JSONArray.get(
   index INTEGER )
  RETURNS result-type
Returns the value of a JSON array element.
util.JSONArray.getLength()
  RETURNS INTEGER
Returns the number of elements in the JSON array object.
util.JSONArray.getType(
   index INTEGER )
  RETURNS STRING
Returns the type of a JSON array element.
util.JSONArray.put(
   index INTEGER,
   value value-type )
Sets an element by position in the JSON array object.
util.JSONArray.remove(
   index INTEGER )
Removes the specified entry in the JSON array object.
util.JSONArray.toFGL(
   arrayRef dynamic-array-type )
Fills a dynamic array variable with the elements contained in the JSON array object.
util.JSONArray.toString()
  RETURNS STRING
Builds a JSON string from the elements contained in the JSON array object.