GetJsonDomContent

This method parses the response into a JSON object. If the server always responds with a JSON object, the step of converting a string to a JSON object is skipped. To be able to read the content of an HTTP response, the bBusy output of the function block FB_IotHttpRequest must return FALSE.
Syntax
METHOD GetJsonDomContent : SJsonValue
VAR_INPUT
fbJson : REFERENCE TO FB_JsonDomParser;
END_VAR
Return value
Name | Type | Description |
---|---|---|
GetJsonDomContent | SJsonValue | JSON root node to start parsing. |
Inputs
Name | Type | Description |
---|---|---|
fbJson | REFERENCE TO FB_JsonDomParser | The instance of the JsonDomParser that is to be used to parse the JSON object. |