Json

constructor()

Create a null JSON object.


constructor(value: Boolean)

Create a boolean JSON object.

Parameters

value

The value of the JSON object.


constructor(value: Double)

Create a double-precision floating-point JSON object.

Parameters

value

The value of the JSON object.


constructor(value: Int)
constructor(value: Long)

Create an integer JSON object.

Parameters

value

The value of the JSON object.


constructor(@NonNull value: Json.Array)

Create an array JSON object.

Parameters

value

The value of the JSON object.


constructor(@NonNull value: Json.Dict)

Create a dictionary JSON object.

Parameters

value

The value of the JSON object.


constructor(@NonNull value: String)

Create a string JSON object.