System.JSON.Builders.TJSONCollectionBuilder.TPairs
Delphi
TPairs = class;
C++
class PASCALIMPLEMENTATION TPairs : 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 key-value pairs to a JSON object.
Do not create an instance of TPairs manually. You can obtain an instance from many different JSON builder methods, such as TJSONObjectBuilder.BeginObject.
Once you have an instance of TPairs, you can use the following methods to add key-value pairs to your object:
After you fill your object, call EndObject to go back to the parent structure of the object (if any).
AsRoot encapsulates the JSON object so that you cannot access the parent JSON array or JSON object.