I need to access the JSON serializer within a ktor...
# ktor
b
I need to access the JSON serializer within a ktor request to perform custom serialization, is there a way to do that? from what I can see ContentNegotiationConfig contains an internal registrations array
✅ 1
a
You can do it the other way around by creating the serializer yourself and passing it to the
ContentNegotiation
plugin.
b
that's what I'm doing right now
I thought maybe there was some method that I've overlooked
a
No, unfortunately, there's no such method.
b
thank you!
h
IMHO there should be an option to pass the serializer/format as an request Attribute, but it is not yet implemented