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

bitkid

06/02/2022, 8:47 AM
i am seeing a strange issue with ktor 2.0.2 (does not happen in 2.0.1). i have an endpoint which returns a pretty printed json (call.respond(thePrettyString)) and i debug it to the console before sending it and it looks fine ... then in the test i do testApplication { client.get("/json").bodyAsText() } ... and write it to the console .. and suddenly it looks like this
"{\r\n  \"swagger\" : \"2.0\",\r\n  \"info\" : {\r\n    \"description\" : \"Talks to AD and handles permissions\",\r\n
r

Rustam Siniukov

06/02/2022, 9:07 AM
b

bitkid

06/02/2022, 10:08 AM
ah yes .. that seems to be the problem 🙂