Exclude null values from json encoding

This commit is contained in:
William Brawner 2022-05-28 20:33:53 -06:00
parent c3df8a252e
commit 3d7a4d9772

View file

@ -100,6 +100,7 @@ fun Application.moduleWithDependencies(
json(json = Json { json(json = Json {
ignoreUnknownKeys = true ignoreUnknownKeys = true
encodeDefaults = true encodeDefaults = true
explicitNulls = false
isLenient = true isLenient = true
allowSpecialFloatingPointValues = true allowSpecialFloatingPointValues = true
allowStructuredMapKeys = true allowStructuredMapKeys = true