InitializeJsonType - cJsonObject

Initializes the JSON object as a specific type

Type: Procedure

Parameters: Integer eType

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

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

Procedure InitializeJsonType Integer eType

Call: Send InitializeJsonType eType


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.