Johann Pardanaud
10/25/2023, 11:10 AMdata class Config(val option1: Any, val option2: Any)
Config(
option1 = ...,
option2 = ...,
)
But Ktor prefers to use class-like functions, with a lambda coupled to a builder receiver:
Json {
prettyPrint = true
isLenient = true
}
What is recommended? Maybe the Ktor approach is more future-proof?ephemient
10/25/2023, 11:21 AMJohann Pardanaud
10/25/2023, 11:25 AM