GetJSONInstanceType function
JSON factory: Get the JSONData class types to use.
Declaration
function GetJSONInstanceType(AType: TJSONInstanceType): TJSONDataClassArguments
AType | Data type for which to return the class. |
Function result
The class to instantiate for data of type
AType.
Description
GetJSONInstanceType can be used to retrieve the registered
descendents of the
TJSONData class, one for each possible
kind of data. The result is the class type used to instantiate data of
type
AType.
The JSON parser and the CreateJSON function will use the
registered types to instantiate JSON Data. When the parser encounters a value of type AType,
it will instantiate a class of the type returned by this function.
By default, the classes in the fpJSON unit are returned.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
