<@U5UU34LPK>Yes, but you can't do that directly on...
# klaxon
c
@karelpeetersYes, but you can't do that directly on an object
k
What's that?
c
What's what?
k
What can't you do on an object?
c
Make it pretty print
You have to first convert it to a json object
Do you see the issue?
k
Ah is this about the conversation from two weeks ago?
Might have to give a bit of a reminder next time simple smile
c
Yeah
Here is an issue on the topic
k
I don't really get the question, klaxon is a JSON library, hence it includes a feature to pretty print JSON. It also includes some stuff to convert instances to JSON.
It it not a data-class-pretty-printing-as-json library.
c
I didn't say it was
I'm saying their implementation is silly, since you first have to serialize it just to parse it again then to serialize it again with pretty print
k
My bad that is indeed weird.
There's no way to convert an instance to a JsonObject directly?
c
I don't believe so
k
@camdenorrb found a way 🙂
c
@karelpeeters How?