PushbackHexBinaryValue

PushbackHexBinaryValue 1:

This method appends a HexBinary value to the end of an array. The coding in the HexBinary format is executed by the method. A data structure, for example, can be used as the source.

Syntax

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

PushbackHexBinaryValue 2: Return value

Name

Type

PushbackHexBinaryValue

SJsonValue (note possible invalidity)

PushbackHexBinaryValue 3: Inputs

Name

Type

v

sJsonValue (note possible invalidity)

p

PVOID

n

DINT

Sample call:

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