JsonConfig

play.api.libs.json.JsonConfig
See theJsonConfig companion trait
object JsonConfig

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
JsonConfig.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(): JsonConfig
def apply(bigDecimalParseConfig: BigDecimalParseConfig, bigDecimalSerializerConfig: BigDecimalSerializerConfig): JsonConfig

Concrete fields

The default limit for digits considering the default MathContext of decimal128. 307 digits should be the correct value for 128 bytes. But we are using 310 because Play JSON uses BigDecimal to parse any number including Doubles and Doubles max value has 309 digits, so we are using 310 here

The default limit for digits considering the default MathContext of decimal128. 307 digits should be the correct value for 128 bytes. But we are using 310 because Play JSON uses BigDecimal to parse any number including Doubles and Doubles max value has 309 digits, so we are using 310 here

Attributes

val defaultMathContext: MathContext

The default math context ("decimal128").

The default math context ("decimal128").

Attributes

val defaultMaxPlain: BigDecimal

The default maximum magnitude of BigDecimal to write out as a plain string.

The default maximum magnitude of BigDecimal to write out as a plain string.

Attributes

val defaultMinPlain: BigDecimal

The default minimum magnitude of BigDecimal to write out as a plain string.

The default minimum magnitude of BigDecimal to write out as a plain string.

Attributes

Zero decimal values (e.g. .0 or .00) or dropped by default. For example, a value of 1.0 or 1.00 will be serialized as 1.

Zero decimal values (e.g. .0 or .00) or dropped by default. For example, a value of 1.0 or 1.00 will be serialized as 1.

Attributes

The default limit for the scale considering the default MathContext of decimal128. limit for scale for decimal128: BigDecimal("0." + "0" * 33 + "1e-6143", java.math.MathContext.DECIMAL128).scale + 1

The default limit for the scale considering the default MathContext of decimal128. limit for scale for decimal128: BigDecimal("0." + "0" * 33 + "1e-6143", java.math.MathContext.DECIMAL128).scale + 1

Attributes

val digitsLimitProperty: String

The system property to override the digits limit

The system property to override the digits limit

Attributes

val mathContextProperty: String

The system property to override the math context. This can be "decimal32", "decimal64", "decimal128" (the default), or "unlimited".

The system property to override the math context. This can be "decimal32", "decimal64", "decimal128" (the default), or "unlimited".

Attributes

val maxPlainProperty: String

The system property to override the maximum magnitude of BigDecimal to write out as a plain string

The system property to override the maximum magnitude of BigDecimal to write out as a plain string

Attributes

val minPlainProperty: String

The system property to override the minimum magnitude of BigDecimal to write out as a plain string

The system property to override the minimum magnitude of BigDecimal to write out as a plain string

Attributes

The system property to override whether zero decimals (e.g. .0 or .00) are written by default. These are dropped by default.

The system property to override whether zero decimals (e.g. .0 or .00) are written by default. These are dropped by default.

Attributes

val scaleLimitProperty: String

The system property to override the scale limit.

The system property to override the scale limit.

Attributes