AddIntMember
This method adds an Int member to a JSON object.
Syntax
METHOD AddIntMember : SJsonValue
VAR_INPUT
v : SJsonValue;
value : DINT;
END_VAR
VAR_IN_OUT CONSTANT
member : STRING;
END_VAR
Return value
Name | Type |
---|---|
AddIntMember | SJsonValue (note possible invalidity) |
Inputs
Name | Type |
---|---|
v | SJsonValue (note possible invalidity) |
value | DINT |
/ Inputs/outputs
Name | Type |
---|---|
member | STRING |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddIntMember(jsonDoc, 'TestInt', 42);