Sign in Join
FPDoc Onlineexperiment

TJSONArray.Booleans property

Member of TJSONArraypublicIn unit fpJson

Get or set elements as boolean values.

Declaration

pascal
property Booleans[Index: Integer]: Boolean read GetBooleans write SetBooleans;

Description

Floats gives direct access to the AsBoolean property when reading. Reading it is the equivalent to accessing

Items[Index].AsBoolean

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

See also

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