SetObject

SetObject 1:

This method sets the value of a property to the type "Object". This enables the nesting of JSON documents.

Syntax

METHOD SetObject : SJsonValue
VAR_INPUT
  v     : SJsonValue;
END_VAR

SetObject 2: Return value

Name

Type

SetObject

SJsonValue

SetObject 3: Inputs

Name

Type

v

SJsonValue

Sample call:

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