SetInt

SetInt 1:

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

Syntax

METHOD SetInt : SJsonValue
VAR_INPUT
  v     : SJsonValue;
  value : DINT;
END_VAR

SetInt 2: Return value

Name

Type

SetInt

SJsonValue (note possible invalidity)

SetInt 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

DINT

Sample call:

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