SetJSONStringParserHandler function
Install a JSON string to JSON Data conversion callback.
Declaration
function SetJSONStringParserHandler(AHandler: TJSONStringParserHandler)
: TJSONStringParserHandlerArguments
AHandler | New handler. |
Function result
Previously installed handler.
Description
SetJSONStringParserHandler has the same functionality as
SetJSONParserHandler.
It sets a callback that will be used by the
GetJSON call to convert a string value to JSON data.
If no such callback is installed, the string will be converted to a stream,
and the handler set by
SetJSONParserHandler will be used instead.
Setting this handler prevents a conversion from a string to a stream.
The function returns the previously installed handler, if any.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
