configured

org.sigilaris.core.codec.json.JsonCodec.configured
object configured

Configuration-bound codec bundles.

Attributes

Source
JsonCodec.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
configured.type

Members list

Type members

Classlikes

final class Codecs(val enc: Encoders, val dec: Decoders)

Value parameters

dec

the configured decoder bundle

enc

the configured encoder bundle

Attributes

Source
JsonCodec.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(config: JsonConfig): Codecs

Creates a codec bundle with a specific configuration.

Creates a codec bundle with a specific configuration.

Value parameters

config

the JSON configuration to use

Attributes

Returns

a codec bundle with encoder and decoder instances bound to the config

val cfg    = JsonConfig.default.copy(dropNullValues = false)
val codecs = JsonCodec.configured(cfg)
import codecs.given
Source
JsonCodec.scala