Samuel Michael

01/30/2020, 11:41 PM
I could see how this might get a little confusing for a deeply nested object

Tim Malseed

01/30/2020, 11:46 PM
I’m sure there are other answers to this question, but, you can create a
data class
representing your data, and Ktor will pass it to your ‘content negotiator’ which will serialize it for you

Matteo Mirk

01/31/2020, 10:51 AM
You can nest maps and objects as you want, then the content negotiator you configured (Jackson, for example) will take care of serializing it
👍 1
What is exactly your doubt, unsure how to build a map or complex type to match the JSON schema you want?