Porovnávané verzie

Kľúč

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

%JSON_ArrayToString function


Function

Get Gets the text representation of the JSON array.

Declaration


Blok kódu
languageesl
themeConfluence
TEXT %JSON_ArrayToString(
    INT in handle, 
    BOOL in pretty
 )


Parameters


handleHandle to JSON array.
prettyMulti-line formatting of output


Return value

None

Description

Function get gets the text representation of the JSON array.

Exception is thrown if a handle to the JSON array is invalid.

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_CreateArray()

 %JSON_ArrayAppendValue(_arr, "Will Smith")
 %JSON_ArrayAppendValue(_arr, "John Wick")
 
 TEXT _txt
 _txt := %JSON_ArrayToString(_arr)

 %JSON_FreeArrayHandle(_arr)