JsonCodecConfiguration

zio.json.JsonCodecConfiguration
See theJsonCodecConfiguration companion object
final case class JsonCodecConfiguration(sumTypeHandling: SumTypeHandling, fieldNameMapping: JsonMemberFormat, allowExtraFields: Boolean, sumTypeMapping: JsonMemberFormat, explicitNulls: Boolean, explicitEmptyCollections: ExplicitEmptyCollections, enumValuesAsStrings: Boolean)

Implicit codec derivation configuration.

Value parameters

allowExtraFields

see jsonNoExtraFields

enumValuesAsStrings

turns on serialization of enum values and sealed trait's case objects as strings

explicitEmptyCollections

turns on explicit serialization of fields with empty collections

explicitNulls

turns on explicit serialization of optional fields with None values

fieldNameMapping

see jsonMemberNames

sumTypeHandling

see jsonDiscriminator

sumTypeMapping

see jsonHintNames

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(sumTypeHandling: SumTypeHandling, fieldNameMapping: JsonMemberFormat, allowExtraFields: Boolean, sumTypeMapping: JsonMemberFormat, explicitNulls: Boolean, explicitEmptyCollections: ExplicitEmptyCollections)
def this(sumTypeHandling: SumTypeHandling, fieldNameMapping: JsonMemberFormat, allowExtraFields: Boolean, sumTypeMapping: JsonMemberFormat, explicitNulls: Boolean)

Concrete methods

def copy(sumTypeHandling: SumTypeHandling, fieldNameMapping: JsonMemberFormat, allowExtraFields: Boolean, sumTypeMapping: JsonMemberFormat, explicitNulls: Boolean, explicitEmptyCollections: ExplicitEmptyCollections, enumValuesAsStrings: Boolean): JsonCodecConfiguration
def copy(sumTypeHandling: SumTypeHandling, fieldNameMapping: JsonMemberFormat, allowExtraFields: Boolean, sumTypeMapping: JsonMemberFormat, explicitNulls: Boolean, explicitEmptyCollections: ExplicitEmptyCollections): JsonCodecConfiguration
def copy(sumTypeHandling: SumTypeHandling, fieldNameMapping: JsonMemberFormat, allowExtraFields: Boolean, sumTypeMapping: JsonMemberFormat, explicitNulls: Boolean): JsonCodecConfiguration

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product