setType

open fun setType(type: Int)

Set type of the JSON object.

A default value (empty string, zero or false) is set when the type is changed.

Parameters

type

The new type for the JSON object.

Throws