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