%JSON_ObjectFromString function


Function

Create JSON object from string.

Declaration
%JSON_ObjectFromString(
    TEXT in text
 )
Parameters
textText representation of JSON object
Return value
Handle to JSON object, must be released by %JSON_FreeObjectHandle.


Description

Function create JSON object from string.

Exception is thrown if cannot parse given text to JSON object.

Example
 INT _obj
 _obj := %JSON_ObjectFromString('{"state":"Valid"}')

 %JSON_FreeObjectHandle(_obj)
Napíšte komentár