When receiving a payload as JsonObject in a HttpCl...
# ktor
m
When receiving a payload as JsonObject in a HttpClient using kotlinx-serialization, is there a way to make it generate nulls instead of JsonNulls for fields that are present but have a null value? I tried setting explicitNulls to false but that didn't seem to work
a
It must not be possible because of the type safety.
m
so
obj["missingKey"]
can be null just fine but
obj["keyWithNullValue"]
can not be null because somehow that conflicts with type safety?
a
Maybe I am wrong, so you'd better ask this question in the #serialization channel.