I have an object graph of collections of data classes deserialized from JSON. I want to print that out and eyeball it as a sanity check, but the standard generated toString format is a single long line that’s not very helpful.
Is there a utility to modify how the generated toString renders?
For quick purposes I can thrown in a
result.toString().replace("), ", "),\n ") I guess. I don’t want to override the toString on all these classes; I just want a quick way to express their contents in a way I can read while I’m working. Or does kotlinx-serialization perhaps have a pretty print utililty somewhere?