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

aeruhxi

01/16/2018, 10:44 AM
Hi
Copy code
install(ContentNegotiation) {
        gson {
            setDateFormat(DateFormat.LONG)
            excludeFieldsWithoutExposeAnnotation()
        }
    }
Even with
excludeFieldsWithoutExposeAnnotation
, it is serializing fields without Expose. Am I missing something?
o

orangy

01/16/2018, 11:57 AM
How do you send content?
a

aeruhxi

01/17/2018, 2:17 AM
call.respond(Model(/*data*/))