JSON_ObjectFromString
%JSON_ObjectFromString function
Function
Creates a JSON object from a string.
Declaration
%JSON_ObjectFromString(
TEXT in text
)Parameters
text | Text representation of JSON object |
Return value
Handle to the JSON object, must be released by %JSON_FreeObjectHandle.
Description
Function creates a JSON object from a string.
Exception is thrown if the given text cannot parse to the JSON object.
Example
INT _obj
_obj := %JSON_ObjectFromString('{"state":"Valid"}')
%JSON_FreeObjectHandle(_obj)