Porovnávané verzie

Kľúč

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

%JSON_ObjectFromString function


Function

Create Creates a JSON object from a string.

Declaration


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


Parameters


textText representation of JSON object


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


Description

Function create creates a JSON object from a string.

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


Example


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

 %JSON_FreeObjectHandle(_obj)