DecimalSerializer

object DecimalSerializer : KSerializer<BigDecimal>

Serializes a BigDecimal as a plain JSON string ("-12.34", "1200.00"; never scientific notation), preserving the original number of fractional digits.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): BigDecimal
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: BigDecimal)