System.JSON.Builders.TJSONCollectionBuilder.TElements
Delphi
TElements = class;
C++
class PASCALIMPLEMENTATION TElements : public TJSONCollectionBuilder::TBaseCollection
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.JSON.Builders.pas System.JSON.Builders.hpp |
System.JSON.Builders | TJSONCollectionBuilder |
Description
JSON builder that allows you to add values to a JSON array.
Do not create an instance of TElements manually. You can obtain an instance from many different JSON builder methods, such as TJSONArrayBuilder.BeginArray.
Once you have an instance of TElements, you can use the following methods to add values to your array:
After you fill your array, call EndArray to go back to the parent structure of the array (if any).
AsRoot encapsulates the JSON array so that you cannot access the parent JSON array or JSON object.