DefaultFormats

Default date format is UTC time.

Default date format is UTC time.

Companion
class
trait Formats
trait Serializable
class Object
trait Matchable
class Any

Value members

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

Lossless date format includes milliseconds too.

Lossless date format includes milliseconds too.

Inherited from
DefaultFormats
Inherited from
Formats
Inherited from
Formats
Inherited from
Formats
def strictArrayExtraction: Boolean
Inherited from
Formats
override def strictFieldDeserialization: Boolean
Definition Classes
Inherited from
DefaultFormats
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

Default formats with given TypeHints.

Default formats with given TypeHints.

Inherited from
DefaultFormats
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

val UTC: TimeZone

Inherited fields

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