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 (note possible invalidity)

SetObject 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

Sample call:

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