formatJson

fun formatJson(json: String, indentSpaces: Int = DEFAULT_INDENT_SPACES): String

Format JSON string.

Parameters

json

Input JSON string.

indentSpaces

The number of spaces to indent for each level of nesting. Default 4