InitializeJsonType - cJsonObject

Initializes the JSON object as a specific type

Type: Procedure

Parameters: Integer eType

ParameterDescription
eTypePassed as constants and can be object, string, integer, number, boolean or null (where null is the initial state of the object, as well):

ConstantMeaning
jsonTypeNullThe JSON null value.
jsonTypeBooleanValue of type Boolean
jsonTypeDoubleValue of type double
jsonTypeIntegerValue of type integer
jsonTypeStringValue of type string


Syntax
Procedure InitializeJsonType Integer eType

Call: Send InitializeJsonType eType


Description

Initializes the JSON object as a specific type.

This completely reinitializes the object, allowing the object instance to be reused. If the previous value / object was member of another JSON object, it will continue to exist, else it will be destroyed.