BigDecimalSerializerSettings

play.api.libs.json.BigDecimalSerializerSettings
final case class BigDecimalSerializerSettings(minPlain: BigDecimal, maxPlain: BigDecimal) extends BigDecimalSerializerConfig

Attributes

Deprecated
true
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override 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

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product