Skip to content

JsonValue - cJsonObject

Gets or Sets JSON Value

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Syntax

Property String JsonValue
Access Type Syntax
Read Access: Get JsonValue to StringVariable
Write Access: Set JsonValue to StringVariable/Value

Description

Gets or Sets JSON Value.

When getting, if the object is of type object or array it would return the JSON as a string.

When setting, sets the value of the object. The object needs to be initialized as a simple JSON type (jsonTypeBoolean, jsonTypeInt, jsonTypeString). To initialize a newly created JSON object, use InitializeJsonType.

Return value can be one of:

Constant Meaning
jsonTypeNull The JSON null value
jsonTypeArray Value of type Array
jsonTypeBoolean Value of type Boolean
jsonTypeDouble Value of type Double
jsonTypeInteger Value of type Integer
jsonTypeObject Value of type Object
jsonTypeString Value of type String