Function
EN
Version 12.11
@JsonType
Json
Syntax
@JsonType(HJSON);
Description
This @Function determines the type of a JSON structure.
HJSON must contain a valid VSPECHJSON (HJS) handle referencing a JSON object or JSON array.
As return value, the @Function returns TEXT containing one of the following values:
"ARRAY" JSON-Array
"OBJECT" JSON-Object
If the JSON handle is invalid, the function returns @ERROR.
Example: @JsonType(HJSON);
HJSON:=@JsonCreate;
TYPE:=@JsonType(HJSON);
@JsonRelease(HJSON);
TYPE contains:
OBJECT
Example: @JsonType(HJSON);
HJSON:=@JsonCreate("Array");
TYPE:=@JsonType(HJSON);
@JsonRelease(HJSON);
TYPE contains:
ARRAY
Note : This text was machine-translated and may contain inaccuracies.
