Sign in Join
FPDoc Onlineexperiment

TJSONArray.Floats property

Member of TJSONArraypublicIn unit fpJson

Get or set elements as floating-point numerical values.

Declaration

pascal
property Floats[Index: Integer]: TJSONFloat read GetFloats write SetFloats;

Description

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

Items[Index].AsFloat

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

See also

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