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

wineluis

01/01/2018, 2:53 PM
when I do this it seems to work
call.respondText(json.toJsonString(), ContentType.Application.Json, HttpStatusCode.OK)
n

neworldlt

01/02/2018, 2:29 PM
Short answer:
ContentNegotiation
determines serializer using by
Accept
header. It means, you need request with
Accept: application/json
header
w

wineluis

01/02/2018, 5:03 PM
wow thx
n

neworldlt

01/04/2018, 7:55 AM
No problem. I had stuck here too
4 Views