System.JSON.TJSONAncestor.AddDescendant

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddDescendant(const Descendent: TJSONAncestor); virtual;

C++

virtual void __fastcall AddDescendant(TJSONAncestor* const Descendent);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.JSON.pas
System.JSON.hpp
System.JSON TJSONAncestor

Description

Declares the method that can be used by the parser to reconstitute the JSON object structure.

Descendants of TJSONAncestor implementing AddDescendant, for example TJSONPair, define AddDescendant as a method used by the parser to reconstitute the JSON object structure.

The TJSONAncestor object given through the Descendent parameter represents the descendant to be added in the JSON object structure.

Parsing the JSON object structure is achieved using the Parse and ParseJSONValue methods.

See Also