SetJson

SetJson 1:

This method inserts a further JSON document into the value of a property.

Syntax

METHOD SetJson : SJsonValue
VAR_INPUT
  v       : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
  rawJson : STRING;
END_VAR

SetJson 2: Return value

Name

Type

SetJson

SJsonValue

SetJson 3: Inputs

Name

Type

v

SJsonValue

SetJson 4:/SetJson 5: Inputs/Outputs

Name

Type

rawJson

STRING

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp  := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetJson(jsonProp, sJson);