withSuffix

open fun withSuffix(suffix: String): JsonWriter<T>

Return a new JsonWriter instance that appends the given suffix after the JSON has been written.

Return

a new JsonWriter instance that appends a suffixafter the JSON

Parameters

suffix

the suffix to write, if any