ParseDocument

ParseDocument 1:

This method loads a JSON object into the DOM memory for further processing. The JSON object takes the form of a string and is transferred to the method as an input. A reference to the JSON document in the DOM memory is returned to the caller.

Syntax

METHOD ParseDocument : SJsonValue
VAR_IN_OUT CONSTANT
  sJson : STRING;
END_VAR

ParseDocument 2: Return value

Name

Type

ParseDocument

SJsonValue (note possible invalidity)

ParseDocument 3: Inputs

Name

Type

sJson

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sJsonString);