[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Return an enumerator for the data
Source position: fpjson.pp line 119
public function TJSONData.GetEnumerator: TBaseJSONEnumerator; virtual; |
The new enumerator
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).
|
JSON enumerator loop variable type |
|
|
Class of TJSONArray |
|
|
Class of TJSONObject |