org.sigilaris.core.codec.json.JsonCodec.configured
Configuration-bound codec bundles.
Attributes
-
Source
-
JsonCodec.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Value parameters
-
dec
-
the configured decoder bundle
-
enc
-
the configured encoder bundle
Attributes
-
Source
-
JsonCodec.scala
-
Supertypes
-
class Object
trait Matchable
class Any
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