Been trying to make a ktor server but unable to understand why the response is escaping string values like the following
{
"address": {
"id": 1,
"firstname": "\"Rahul\"",
"lastname": "\"Rawat\"",
"address1": "\"Address1\"",
"address2": "\"Address2\"",
"city": "\"City\"",
"zipCode": "\"ZipCode\"",
"phone": "\"80808080\"",
"state_name": "\"State\"",
"alternative_phone": "\"Alternative\"",
"company": "\"Company\"",
"state_id": 1,
"country_id": 2
}
}
My server looks like the following
install(ContentNegotiation) {
json(Json {
prettyPrint = true
isLenient = true
})
}
Please someone help.