Porovnávané verzie

Kľúč

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

%JSON_ObjectIsValue function


Function

Check if there is value in given field in JSON object.

Declaration


Blok kódu
languageesl
themeConfluence
BOOL %JSON_ObjectIsValue(
    INT in handle, 
    TEXT in field
 )


Parameters


handleHandle to parent JSON object.
fieldField name


Return value

@TRUE if in given field is value of type BOOL, INT, REAL, TEXT or invalid value, else @FALSE.

Description

Function check if there is value of type BOOL, INT, REAL, TEXT or invalid value in given index in JSON object.

Exception is thrown if handle to JSON object is invalid or field does not exists.

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString('{"Count":5}')
 
 BOOL _is_value
 _is_value := %JSON_ObjectIsValue(_obj, "Count")

 %JSON_FreeObjectHandle(_obj)