configured

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

Configuration-bound decoder bundles.

Attributes

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

Members list

Type members

Classlikes

final class Decoders(val config: JsonConfig) extends JsonDecoderInstances

Factory for decoder bundles bound to a specific JsonConfig.

Factory for decoder bundles bound to a specific JsonConfig.

Use this to override default behavior like field naming or null handling.

val cfg = JsonConfig.default.copy(treatAbsentAsNull = false)
given JsonDecoder.configured.Decoders = JsonDecoder.configured(cfg)

Attributes

Source
JsonDecoder.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(config: JsonConfig): Decoders

Creates a decoder bundle bound to the given configuration.

Creates a decoder bundle bound to the given configuration.

Value parameters

config

the JSON configuration

Attributes

Returns

a Decoders instance providing configured given instances

Source
JsonDecoder.scala