[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Install a JSON string to JSON Data conversion callback
Source position: fpjson.pp line 797
function SetJSONStringParserHandler( |
AHandler: TJSONStringParserHandler |
AHandler |
|
New handler |
Previously installed handler
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.
|
return the current JSON string to JSON Data conversion callback |
|
|
Set the JSON parser handler |
|
|
Get the current JSON parser handler |