AddBase64Member

AddBase64Member 1:

This method adds a Base64 member to a JSON object. A structure, for example, can be addressed as an input parameter. The corresponding Base64 coding is done by the method.

Syntax

METHOD AddBase64Member : SJsonValue
VAR_INPUT
  v      : SJsonValue;
  p      : PVOID;
  n      : DINT;
END_VAR
VAR_IN_OUT CONSTANT
  member : STRING;
END_VAR

AddBase64Member 2: Return value

Name

Type

AddBase64Member

SJsonValue (note possible invalidity)

AddBase64Member 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

p

PVOID

n

DINT

AddBase64Member 4:/AddBase64Member 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc    := fbJson.ParseDocument(sExistingJsonDocument);
jsonBase64 := fbJson.AddBase64Member(jsonDoc, 'TestBase64', ADR(stStruct), SIZEOF(stStruct));