JsonConfig

org.sigilaris.core.codec.json.JsonConfig
See theJsonConfig companion class
object JsonConfig

Attributes

Companion
class
Source
JsonConfig.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
JsonConfig.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete fields

Default configuration aligning with project guidelines.

Default configuration aligning with project guidelines.

Defaults:

  • Field names unchanged (Identity)
  • Null values dropped in encoding
  • Absent fields treated as null in decoding
  • BigInt/BigDecimal encoded as strings
  • Simple subtype names for discriminator

Attributes

Source
JsonConfig.scala

Givens

Givens

Implicit default for convenience; override in scope to customize.

Implicit default for convenience; override in scope to customize.

Attributes

Example
 given JsonConfig =
   JsonConfig.default.copy(fieldNaming = FieldNamingPolicy.SnakeCase)
Source
JsonConfig.scala