value

open fun value(b: Boolean): JSONWriter

Append either the value true or the value false.

Return

this

Parameters

b

A boolean.

Throws

if a called function has an error


open fun value(d: Double): JSONWriter

Append a double value.

Return

this

Parameters

d

A double.

Throws

If the number is not finite.


open fun value(l: Long): JSONWriter

Append a long value.

Return

this

Parameters

l

A long.

Throws

if a called function has an error


open fun value(object: Any): JSONWriter

Append an object value.

Return

this

Parameters

object

The object to append. It can be null, or a Boolean, Number, String, JSONObject, or JSONArray, or an object that implements JSONString.

Throws

If the value is out of sequence.