Cung phan tich cach lam viec “nghiem tuc” voi JSON trong Ktor: cach ket noi plugin
ContentNegotiation va co che serialization dua tren
kotlinx.serialization, cach mo ta model bang
@Serializable, doc response theo kieu (typed) qua
response.body<T>(), gui JSON qua
setBody(...) va khong quen
Content-Type. Rieng phan thiet lap thuc te, ta co
ignoreUnknownKeys va cac loi thuong gap (doc body hai lan, model Kotlin khong khop JSON, v.v.).