Formats to use when converting JSON. Formats are usually configured by using an implicit parameter:
implicit val formats: Formats = org.json4s.DefaultFormats
- Companion:
- object
- Source:
- Formats.scala
Value members
Abstract methods
Concrete methods
Adds the specified type hints to this formats.
Adds the specified type hints to this formats.
- Source:
- Formats.scala
Adds the specified custom serializer to this formats.
Adds the specified custom serializer to this formats.
- Source:
- Formats.scala
Adds the specified custom serializer to this formats.
Adds the specified custom serializer to this formats.
- Source:
- Formats.scala
Adds the specified custom key serializer to this formats.
Adds the specified custom key serializer to this formats.
- Source:
- Formats.scala
Adds a field serializer for a given type to this formats.
Adds a field serializer for a given type to this formats.
- Source:
- Formats.scala
Adds the specified custom serializers to this formats.
Adds the specified custom serializers to this formats.
- Source:
- Formats.scala
Removes the specified custom serializer from this formats.
Removes the specified custom serializer from this formats.
- Source:
- Formats.scala
Adds the specified custom serializers to this formats.
Adds the specified custom serializers to this formats.
- Source:
- Formats.scala
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).
- Source:
- Formats.scala
Parameter name reading strategy. By default 'paranamer' is used.
Parameter name reading strategy. By default 'paranamer' is used.
- Source:
- Formats.scala
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.
- Source:
- Formats.scala
Deprecated methods
- Deprecated
[Since version 3.6.4]
Use the internal methods in the companion object instead.- Source:
- Formats.scala
- Deprecated
[Since version 3.6.4]
Use the internal methods in the companion object instead.- Source:
- Formats.scala
- Deprecated
[Since version 3.6.4]
Use the internal methods in the companion object instead.- Source:
- Formats.scala
- Deprecated
[Since version 3.6.4]
Use the internal methods in the companion object instead.- Source:
- Formats.scala
- Deprecated
[Since version 3.7.0]
Use withNullExtractionStrategy instead- Source:
- Formats.scala