Porovnávané verzie

Kľúč

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

%JSON_ObjectFromString function


Function

Create JSON object from string.

Declaration


Blok kódu
languageesl
themeConfluence
%JSON_ObjectFromString(
    TEXT in text
 )


Parameters


textText representation of JSON object


Return value
Handle to JSON object, must be released by %JSON_FreeObjectHandle.


Description

Function create JSON object from string.

Exception is thrown if cannot parse given text to JSON object.

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString('{"state":"Valid"}')

 %JSON_FreeObjectHandle(_obj)