Join Slack
Powered by
Hey all, I'm having trouble deserializing json str...
# ktor
d
Damien O'Hara
07/16/2023, 5:46 AM
Hey all, I'm having trouble deserializing json strings from requests
a
Aleksei Tirman [JB]
07/17/2023, 6:37 AM
To deserialize a JSON string you need to remove the String type from the list of the ignored types:
Copy code
install(ContentNegotiation) { // ... removeIgnoredType<String>() }
Starting from version 3.0.0, the behavior will be what you expect.
d
Damien O'Hara
07/17/2023, 12:09 PM
Oh nice, thanks Aleksei!
3
Views
Open in Slack
Previous
Next