JSONWriter

fun JSONWriter(writer: Writer = StringWriter(), prettyPrint: Boolean = false)

Construct a new JSONWriter.

Parameters

writer

The target for the raw JSON document.

prettyPrint

true indicates the JSON should be pretty-printed; false indicates the JSON should be minified.