Package-level declarations
Types
Link copied to clipboard
abstract class NonEmptySerializer<T : Any>(tSerializer: ERROR CLASS: Symbol not found for KSerializer<T>) : <ERROR CLASS> ERROR CLASS: Symbol not found for JsonTransformingSerializer<T>
Replicates Jackson's @JsonInclude(JsonInclude.Include.NON_EMPTY) behaviour. Strips null, empty strings, empty arrays, and empty objects from the serialized output. Requires the enclosing Json instance to have encodeDefaults = true, which is already in our default global Json instance.
Link copied to clipboard
abstract class WriteOnlySerializer<T : Any>(tSerializer: ERROR CLASS: Symbol not found for KSerializer<T>, keysToIgnore: Set<String>) : <ERROR CLASS> ERROR CLASS: Symbol not found for JsonTransformingSerializer<T>
Replicates Jackson's @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) behaviour. Properties in keysToIgnore are deserialized normally but omitted from serialized output.