https://kotlinlang.org logo
#ktor
Title
# ktor
c

Christiano

01/15/2023, 11:41 AM
How can i easily support both
application/xwww.form-urlencoded
and
application/json
contents in Ktor? Is there a way to easily convert a form to the json format? 🤔 I know I'll probably have to create a custom
ContentConverter
, or is my assumption wrong?
a

Aleksei Tirman [JB]

01/16/2023, 10:56 AM
Could you please explain why you want to convert a form parameters to a JSON?
c

Christiano

01/17/2023, 9:22 AM
Just so I can easily use all my POST/PUT calls with both contentTypes.
22 Views