Sign in Join
FPDoc Onlineexperiment

TJSONData.GetEnumerator function

Member of TJSONDatapublicIn unit fpJson

Return an enumerator for the data.

Declaration

pascal
function GetEnumerator: TBaseJSONEnumerator; virtual

Function result

The new enumerator.

Description

GetEnumerator returns an enumerator for the JSON data. For simple types, the enumerator will just contain the current value. For arrays and objects, the enumerator will loop over the values in the array. The return value is not a TJSONData type, but a TJSONEnum structure, which contains the value, and for structured types, the key (numerical or string).

See also

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