%JSON_ArrayFromString function


Function

Create JSON array from string

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


Description

Function create JSON array from string.

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

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

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