Porovnávané verzie

Kľúč

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

%JSON_ObjectGetFieldsCount function


Function

Get Gets fields count in the JSON object.

Declaration


Blok kódu
languageesl
themeConfluence
INT %JSON_ObjectGetFieldsCount(
    INT in handle
 )


Parameters


handleHandle to JSON object.


Return value

Fields count in the JSON object

Description

Function get gets fields count in the JSON object.

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

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString('{"1":"A","2":"B"}')
 
 INT _count
 _count := %JSON_ObjectGetFieldsCount(_obj)

 %JSON_FreeObjectHandle(_obj)