AddHexBinaryMember

AddHexBinaryMember 1:

This method adds a HexBinary member to a JSON object.

Syntax

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

AddHexBinaryMember 2: Return value

Name

Type

AddHexBinaryMember

SjsonValue (note possible invalidity)

AddHexBinaryMember 3: Inputs

Name

Type

v

SjsonValue (note possible invalidity)

p

PVOID

n

DINT

AddHexBinaryMember 4:/AddHexBinaryMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddHexBinaryMember(jsonDoc, ‚TestHexBinary‘, sHexBinary, SIZEOF(sHexBinary));