PushbackBase64Value

PushbackBase64Value 1:

This method appends a Base64 value to the end of an array. A structure, for example, can be addressed as an input parameter. The corresponding Base64 coding is done by the method.

Syntax

METHOD PushbackBase64Value : SJsonValue
VAR_INPUT
  v : SJsonValue;
  p : PVOID;
  n : DINT;
END_VAR

PushbackBase64Value 2: Return value

Name

Type

PushbackBase64Value

SJsonValue

PushbackBase64Value 3: Inputs

Name

Type

v

sJsonValue

p

PVOID

n

DINT

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonArray := fbJson.FindMember(jsonDoc, 'array');
jsonValue := fbJson.PushbackBase64Value(jsonArray, ADR(stStruct), SIZEOF(stStruct));