Sign in Join
FPDoc Onlineexperiment

TJSONArray.Integers property

Member of TJSONArraypublicIn unit fpJson

Get or set elements as integer values.

Declaration

pascal
property Integers[Index: Integer]: Integer read GetIntegers write SetIntegers;

Description

Integers gives direct access to the AsInteger property when reading. Reading it is the equivalent to accessing

Items[Index].AsInteger

When writing, it will check if an integer JSON value is located at the given location, and replace it with the new value. If a non-integer JSON value is there, it is replaced with the written integer value.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.