SetJson

SetJson 1:

Diese Methode fügt in den Value eines Properties ein weiteres JSON-Dokument ein.

Syntax

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

SetJson 2: Rückgabewert

Name

Typ

SetJson

SJsonValue

SetJson 3: Eingänge

Name

Typ

v

SJsonValue

SetJson 4:/SetJson 5: Ein-/Ausgänge

Name

Typ

rawJson

STRING

Beispielaufruf:

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