toString

open fun toString(): String

Return the JSON object as a JSON string.

Return

The JSON string describing this object.


open fun toString(pretty: Boolean): String

Return the JSON object as a JSON string.

Return

The JSON string describing the JSON object.

Parameters

pretty

Whether the string should be pretty (with indents etc.)