indent

open fun indent(indent: String): JsonAdapter<T>

Return a JSON adapter equal to this, but using indent to control how the result is formatted. The indent string to be repeated for each level of indentation in the encoded document. If indent.isEmpty() the encoded document will be compact. Otherwise the encoded document will be more human-readable.

Parameters

indent

a string containing only whitespace.