write

fun write(value: Any?): String

value as JSON, indented by two spaces per level.