FloatAsLongSerializer

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

Replicates Jackson's ACCEPT_FLOAT_AS_INT behaviour for Long fields. A floating-point JSON number is truncated to Long 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): Long
Link copied to clipboard
open override fun serialize(encoder: ERROR CLASS: Symbol not found for Encoder, value: Long): ERROR CLASS: Unresolved name: encodeLong