Porovnávané verzie

Kľúč

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

%JSON_ObjectToString function


Function

Get Gets a text representation of the JSON object.

Declaration


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


Parameters


handleHandle to JSON object.
prettyMulti-line formatting of output


Return value

None

Description

Function get gets a text representation of the JSON object.

Exception is thrown if handle to the JSON object is invalid.

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_CreateObject()

 %JSON_ObjectSetValue(_obj, "Name", "John Smith")
 
 TEXT _txt
 _txt := %JSON_ObjectToString(_obj)

 %JSON_FreeObjectHandle(_obj)