trait DefaultFormats extends Formats
- Alphabetic
- By Inheritance
- DefaultFormats
- Formats
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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.
- Definition Classes
- Formats
- def +(newSerializer: KeySerializer[_]): Formats
Adds the specified custom key serializer to this formats.
Adds the specified custom key serializer to this formats.
- Definition Classes
- Formats
- def +(newSerializer: Serializer[_]): Formats
Adds the specified custom serializer to this formats.
Adds the specified custom serializer to this formats.
- Definition Classes
- Formats
- def +(newSerializer: RichSerializer[_]): Formats
Adds the specified custom serializer to this formats.
Adds the specified custom serializer to this formats.
- Definition Classes
- Formats
- def +(extraHints: TypeHints): Formats
Adds the specified type hints to this formats.
Adds the specified type hints to this formats.
- Definition Classes
- Formats
- def ++(newSerializers: Iterable[Serializer[_]]): Formats
Adds the specified custom serializers to this formats.
Adds the specified custom serializers to this formats.
- Definition Classes
- Formats
- def -(serializer: Serializer[_]): Formats
Removes the specified custom serializer from this formats.
Removes the specified custom serializer from this formats.
- Definition Classes
- Formats
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addKeySerializers(newKeySerializers: Iterable[KeySerializer[_]]): Formats
Adds the specified custom serializers to this formats.
Adds the specified custom serializers to this formats.
- Definition Classes
- Formats
- def alwaysEscapeUnicode: Boolean
- Definition Classes
- Formats
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val companions: List[(Class[_], AnyRef)]
- Definition Classes
- DefaultFormats → Formats
- def considerCompanionConstructors: Boolean
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 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).
- Definition Classes
- Formats
- val customKeySerializers: List[KeySerializer[_]]
- Definition Classes
- DefaultFormats → Formats
- val customSerializers: List[Serializer[_]]
- Definition Classes
- DefaultFormats → Formats
- val dateFormat: DateFormat
- Definition Classes
- DefaultFormats → Formats
- def dateFormatter: SimpleDateFormat
- Attributes
- protected
- val emptyValueStrategy: EmptyValueStrategy
- Definition Classes
- DefaultFormats → Formats
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val extractionNullStrategy: ExtractionNullStrategy
- Definition Classes
- DefaultFormats → Formats
- val fieldSerializers: List[(Class[_], FieldSerializer[_])]
- Definition Classes
- DefaultFormats → Formats
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lossless: Formats
Lossless date format includes milliseconds too.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonStrict: Formats
- Definition Classes
- Formats
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val parameterNameReader: reflect.ParameterNameReader
Parameter name reading strategy.
Parameter name reading strategy. By default 'paranamer' is used.
- Definition Classes
- DefaultFormats → Formats
- def preservingEmptyValues: Formats
- Definition Classes
- Formats
- val primitives: Set[Type]
- Definition Classes
- DefaultFormats → Formats
- def richSerializers: List[RichSerializer[_]]
- Definition Classes
- Formats
- def skippingEmptyValues: Formats
- Definition Classes
- Formats
- def strict: Formats
- Definition Classes
- Formats
- def strictArrayExtraction: Boolean
- Definition Classes
- Formats
- def strictFieldDeserialization: Boolean
- Definition Classes
- DefaultFormats → Formats
- def strictMapExtraction: Boolean
- Definition Classes
- Formats
- val strictOptionParsing: Boolean
- Definition Classes
- DefaultFormats → Formats
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val typeHints: TypeHints
- Definition Classes
- DefaultFormats → Formats
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val wantsBigDecimal: Boolean
- Definition Classes
- DefaultFormats → Formats
- val wantsBigInt: Boolean
- Definition Classes
- DefaultFormats → Formats
- def withBigDecimal: Formats
- Definition Classes
- Formats
- def withBigInt: Formats
- Definition Classes
- Formats
- def withCompanions(comps: (Class[_], AnyRef)*): Formats
- Definition Classes
- Formats
- def withDouble: Formats
- Definition Classes
- Formats
- def withEmptyValueStrategy(strategy: EmptyValueStrategy): Formats
- Definition Classes
- Formats
- def withEscapeUnicode: Formats
- Definition Classes
- Formats
- def withExtractionNullStrategy(strategy: ExtractionNullStrategy): Formats
- Definition Classes
- Formats
- def withHints(hints: TypeHints): Formats
Default formats with given
TypeHint
s. - def withLong: Formats
- Definition Classes
- Formats
- def withPre36DeserializationBehavior: Formats
Prior to 3.6 companion object constructors were only considered when deserializing if there were no primary constructors.
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.
- Definition Classes
- Formats
- def withStrictArrayExtraction: Formats
- Definition Classes
- Formats
- def withStrictFieldDeserialization: Formats
- Definition Classes
- Formats
- def withStrictMapExtraction: Formats
- Definition Classes
- Formats
- def withStrictOptionParsing: Formats
- Definition Classes
- Formats
Deprecated Value Members
- def customDeserializer(implicit format: Formats): PartialFunction[(TypeInfo, JValue), Any]
- Definition Classes
- Formats
- Annotations
- @deprecated
- Deprecated
(Since version 3.6.4) Use the internal methods in the companion object instead.
- def customKeyDeserializer(implicit format: Formats): PartialFunction[(TypeInfo, String), Any]
- Definition Classes
- Formats
- Annotations
- @deprecated
- Deprecated
(Since version 3.6.4) Use the internal methods in the companion object instead.
- def customKeySerializer(implicit format: Formats): PartialFunction[Any, String]
- Definition Classes
- Formats
- Annotations
- @deprecated
- Deprecated
(Since version 3.6.4) Use the internal methods in the companion object instead.
- def customSerializer(implicit format: Formats): PartialFunction[Any, JValue]
- Definition Classes
- Formats
- Annotations
- @deprecated
- Deprecated
(Since version 3.6.4) Use the internal methods in the companion object instead.
- def disallowNull: Formats
- Definition Classes
- Formats
- Annotations
- @deprecated
- Deprecated
(Since version 3.7.0) Use withNullExtractionStrategy instead