%JSON_ArrayFromString function


Function

Creates a JSON array from the string.

Declaration
%JSON_ArrayFromString(
    TEXT in text
 )
Parameters
textText representation of the JSON array
Return value
Handle to the JSON array, must be allowed by %JSON_FreeArrayHandle.


Description

The function creates a JSON field from the specified text representation of the field.

If the JSON array cannot be parsed from the text, an exception is thrown.

Example
 INT _arr
 _arr := %JSON_ArrayFromString("[1,2,3]")

 %JSON_FreeArrayHandle(_arr)
Napíšte komentár