BigDecimalSerializerConfig

play.api.libs.json.BigDecimalSerializerConfig
See theBigDecimalSerializerConfig companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def maxPlain: BigDecimal

Maximum magnitude of BigDecimal to write out as a plain string. Defaults to JsonConfig.defaultMaxPlain. This can be set using the JsonConfig.maxPlainProperty system property.

Maximum magnitude of BigDecimal to write out as a plain string. Defaults to JsonConfig.defaultMaxPlain. This can be set using the JsonConfig.maxPlainProperty system property.

Attributes

def minPlain: BigDecimal

Minimum magnitude of BigDecimal to write out as a plain string. Defaults to JsonConfig.defaultMinPlain. This can be set using the JsonConfig.minPlainProperty system property.

Minimum magnitude of BigDecimal to write out as a plain string. Defaults to JsonConfig.defaultMinPlain. This can be set using the JsonConfig.minPlainProperty system property.

Attributes

def preserveZeroDecimal: Boolean

True to preserve a zero decimal , or false to drop them (the default). For example, 1.00 will be serialized as 1 if false or 1.0 if true (only a single zero is preserved). Other trailing zeroes will be dropped regardless of this value. For example, 1.1000 will always be serialized as 1.1. This can be set using the JsonConfig.preserveZeroDecimalProperty system property.

True to preserve a zero decimal , or false to drop them (the default). For example, 1.00 will be serialized as 1 if false or 1.0 if true (only a single zero is preserved). Other trailing zeroes will be dropped regardless of this value. For example, 1.1000 will always be serialized as 1.1. This can be set using the JsonConfig.preserveZeroDecimalProperty system property.

Attributes