SetBool

SetBool 1:

This method sets the value of a property to a value of the data type BOOL.

Syntax

METHOD SetBool : SJsonValue
VAR_INPUT
  v     : SJsonValue;
  value : BOOL;
END_VAR

SetBool 2: Return value

Name

Type

SetBool

SJsonValue (note possible invalidity)

SetBool 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

BOOL

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp  := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetBool(jsonProp, TRUE);