InitializeJsonType - cJsonObject

Initializes the JSON object as a specific type

Type: Procedure

Parameters: Integer eType

ParameterDescription
eTypeExplicit JSON type

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


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.