Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%JSON_ArrayFromString function


Function

Create Creates a JSON array from the string.

Declaration


Blok kódu
languageesl
themeConfluence
%JSON_ArrayFromString(
    TEXT in text
 )


Parameters


textText representation of the JSON array


Return value
Handle to the JSON array, must be released by 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

Function create JSON array from string.

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

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_ArrayFromString("[1,2,3]")

 %JSON_FreeArrayHandle(_arr)