When returning a `kotlinx.serialization.json.JsonO...
# http4k
a
When returning a
kotlinx.serialization.json.JsonObject
, is it right that I have to turn it into a String first? Or is there a better way?
Copy code
Response(OK).body(jsonReply.toString())
It's probably worth also reading the various concepts pages to see how http4k is put together 🙂
a
That page talks a lot about using data classes and serialization. In my case, I have a
JsonObject
instance, but I don't see
body
alternative for that.