configured

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

Configuration-bound encoder bundles.

Attributes

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

Members list

Type members

Classlikes

final class Encoders(val config: JsonConfig) extends JsonEncoderInstances

Factory for encoder bundles bound to a specific JsonConfig.

Factory for encoder bundles bound to a specific JsonConfig.

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

val cfg = JsonConfig.default.copy(dropNullValues = false)
given JsonEncoder.configured.Encoders = JsonEncoder.configured(cfg)
import JsonEncoder.ops.*

Attributes

Source
JsonEncoder.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(config: JsonConfig): Encoders

Creates an encoder bundle bound to the given configuration.

Creates an encoder bundle bound to the given configuration.

Value parameters

config

the JSON configuration

Attributes

Returns

an Encoders instance providing configured given instances

Source
JsonEncoder.scala