DefaultFormats

trait DefaultFormats extends Formats
Companion
object
trait Formats
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

Lossless date format includes milliseconds too.

Lossless date format includes milliseconds too.

override def strictFieldDeserialization: Boolean
Definition Classes

Default formats with given TypeHints.

Default formats with given TypeHints.

Inherited methods

def +[A](newSerializer: FieldSerializer[A]): Formats

Adds a field serializer for a given type to this formats.

Adds a field serializer for a given type to this formats.

Inherited from
Formats
def +(newSerializer: KeySerializer[_]): Formats

Adds the specified custom key serializer to this formats.

Adds the specified custom key serializer to this formats.

Inherited from
Formats
def +(newSerializer: Serializer[_]): Formats

Adds the specified custom serializer to this formats.

Adds the specified custom serializer to this formats.

Inherited from
Formats
def +(newSerializer: RichSerializer[_]): Formats

Adds the specified custom serializer to this formats.

Adds the specified custom serializer to this formats.

Inherited from
Formats
def +(extraHints: TypeHints): Formats

Adds the specified type hints to this formats.

Adds the specified type hints to this formats.

Inherited from
Formats
def ++(newSerializers: Iterable[Serializer[_]]): Formats

Adds the specified custom serializers to this formats.

Adds the specified custom serializers to this formats.

Inherited from
Formats
def -(serializer: Serializer[_]): Formats

Removes the specified custom serializer from this formats.

Removes the specified custom serializer from this formats.

Inherited from
Formats
def addKeySerializers(newKeySerializers: Iterable[KeySerializer[_]]): Formats

Adds the specified custom serializers to this formats.

Adds the specified custom serializers to this formats.

Inherited from
Formats
def alwaysEscapeUnicode: Boolean
Inherited from
Formats

Setting to false preserves library's behavior prior to 3.6, where companion object constructors were only considered when deserializing if there were no primary constructors. Setting to true preserves the backwards-incompatible change made in 3.6 to always consider companion object constructors when deserializing (https://github.com/json4s/json4s/pull/487).

Setting to false preserves library's behavior prior to 3.6, where companion object constructors were only considered when deserializing if there were no primary constructors. Setting to true preserves the backwards-incompatible change made in 3.6 to always consider companion object constructors when deserializing (https://github.com/json4s/json4s/pull/487).

Inherited from
Formats
Inherited from
Formats
Inherited from
Formats
Inherited from
Formats
def strictArrayExtraction: Boolean
Inherited from
Formats
def strictMapExtraction: Boolean
Inherited from
Formats
Inherited from
Formats
Inherited from
Formats
def withCompanions(comps: (Class[_], AnyRef)*): Formats
Inherited from
Formats
Inherited from
Formats
def withEmptyValueStrategy(strategy: EmptyValueStrategy): Formats
Inherited from
Formats
Inherited from
Formats
Inherited from
Formats

Prior to 3.6 companion object constructors were only considered when deserializing if there were no primary constructors. A backwards-incompatible change was made in 3.6 to always consider companion object constructors when deserializing (https://github.com/json4s/json4s/pull/487), and is the default setting (considerCompanionConstructors = true). This changes the setting to false to preserve pre-3.6 deserialization behavior.

Prior to 3.6 companion object constructors were only considered when deserializing if there were no primary constructors. A backwards-incompatible change was made in 3.6 to always consider companion object constructors when deserializing (https://github.com/json4s/json4s/pull/487), and is the default setting (considerCompanionConstructors = true). This changes the setting to false to preserve pre-3.6 deserialization behavior.

Inherited from
Formats

Deprecated and Inherited methods

@deprecated(message = "Use the internal methods in the companion object instead.", since = "3.6.4")
def customDeserializer(format: Formats): PartialFunction[(TypeInfo, JValue), Any]
Deprecated
[Since version 3.6.4] Use the internal methods in the companion object instead.
Inherited from
Formats
@deprecated(message = "Use the internal methods in the companion object instead.", since = "3.6.4")
def customKeyDeserializer(format: Formats): PartialFunction[(TypeInfo, String), Any]
Deprecated
[Since version 3.6.4] Use the internal methods in the companion object instead.
Inherited from
Formats
@deprecated(message = "Use the internal methods in the companion object instead.", since = "3.6.4")
def customKeySerializer(format: Formats): PartialFunction[Any, String]
Deprecated
[Since version 3.6.4] Use the internal methods in the companion object instead.
Inherited from
Formats
@deprecated(message = "Use the internal methods in the companion object instead.", since = "3.6.4")
def customSerializer(format: Formats): PartialFunction[Any, JValue]
Deprecated
[Since version 3.6.4] Use the internal methods in the companion object instead.
Inherited from
Formats
@deprecated(message = "Use withNullExtractionStrategy instead", since = "3.7.0")
Deprecated
[Since version 3.7.0] Use withNullExtractionStrategy instead
Inherited from
Formats

Concrete fields

override val companions: List[(Class[_], AnyRef)]
override val customKeySerializers: List[KeySerializer[_]]
override val customSerializers: List[Serializer[_]]
override val emptyValueStrategy: EmptyValueStrategy
override val fieldSerializers: List[(Class[_], FieldSerializer[_])]
override val primitives: Set[Type]
override val strictOptionParsing: Boolean
override val typeHints: TypeHints
override val wantsBigDecimal: Boolean
override val wantsBigInt: Boolean