I could see how this might get a little confusing ...
# ktor
s
I could see how this might get a little confusing for a deeply nested object
t
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
m
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?