FloatAsIntSerializer

object FloatAsIntSerializer : <ERROR CLASS> ERROR CLASS: Symbol not found for KSerializer<kotlin/Int>(source)

Replicates Jackson's ACCEPT_FLOAT_AS_INT behaviour for Int fields. A floating-point JSON number is truncated to Int by dropping the fractional part, exactly like Jackson's default truncation behaviour.

Usage:

Properties

Link copied to clipboard
open override val descriptor: ERROR CLASS: Symbol not found for SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: ERROR CLASS: Symbol not found for Decoder): Int
Link copied to clipboard
open override fun serialize(encoder: ERROR CLASS: Symbol not found for Encoder, value: Int): ERROR CLASS: Unresolved name: encodeInt