ParseJsonString method: Document class
Syntax
ParseJsonString(JSON_data[, validate])
Description
Use the ParseJsonString method to generate a document from the JSON data provided as string.
Parameters
| Parameter | Description |
|---|---|
|
JSON_data |
Specifies the JSON data as a string. |
|
validate |
Specifies a Boolean value indicating whether to validate the JSON data based on the XML schema. |
Returns
A Boolean value: True if a document (or a valid document) was generated, False otherwise.
Example
Local Document &DOC;
Local string &JSONdata;
&string = &DOC.GenJsonString();
&b_ret = &DOC.ParseJsonString(&JSONdata, True);