indent

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

Return a JSON adapter equal to this, but using {@code indent} to control how the result isformatted. The {@code indent} string to be repeated for each level of indentation in theencoded document. If {@code indent.isEmpty()} the encoded document will be compact. Otherwisethe encoded document will be more human-readable.

Parameters

indent

a string containing only whitespace.