Porovnávané verzie

Kľúč

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

%JSON_ObjectGetFieldName function


Function

Get Gets a field name at a given index from the JSON object.

Declaration


Blok kódu
languageesl
themeConfluence
TEXT %JSON_ObjectGetFieldName(
    INT in handle, 
    INT in index
 )


Parameters


handleHandle to parent JSON object.
indexIndex of field


Return value

Field name at a given index in the JSON object.

Description

Function get gets a field name at a given index in the JSON object.

Exception is thrown if handle to the JSON object is invalid or index is out of range.

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString('{"Text":"Lorem Ipsum"}')
 
 TEXT _txt
 _txt := %JSON_ObjectGetFieldName(_obj, 1)

 %JSON_FreeObjectHandle(_obj)