Vidíte historickú verziu tejto stránky. Pozrite si aktuálnu verziu.

Porovnať s aktuálnou verziou Zobraziť históriu stránky

Verzia 1 Ďalej »

%JSON_ArrayToString function


Function

Get text representation of JSON array.

Declaration
TEXT %JSON_ArrayToString(
    INT in handle, 
    BOOL in pretty
 )
Parameters
handleHandle to JSON array.
prettyMultiline formatting of output
Return value

None

Description

Function get text representation of JSON array.

Exception is thrown if handle to JSON array is invalid.

Example
 INT _arr
 _arr := %JSON_CreateArray()

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

 %JSON_FreeArrayHandle(_arr)
  • Žiadne štítky