write

fun write(stringer: JSONStringer, sortKeys: Boolean)(source)

Helper method that is used to write the value as a JSON String.

Parameters

stringer

The JSONStringer object.

Throws

If the value is unable to be written as JSON.