GetJsonDomContent

GetJsonDomContent 1:

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

GetJsonDomContent 2: Return value

Name

Type

Description

GetJsonDomContent

SJsonValue

JSON root node to start parsing.

GetJsonDomContent 3: Inputs

Name

Type

Description

fbJson

REFERENCE TO FB_JsonDomParser

The instance of the JsonDomParser that is to be used to parse the JSON object.