trait DefaultFormats extends Formats

Source
DefaultFormats.scala
Linear Supertypes
Formats, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultFormats
  2. Formats
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. 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
  5. def +(newSerializer: Serializer[_]): Formats

    Adds the specified custom serializer to this formats.

    Adds the specified custom serializer to this formats.

    Definition Classes
    Formats
  6. def +(newSerializer: RichSerializer[_]): Formats

    Adds the specified custom serializer to this formats.

    Adds the specified custom serializer to this formats.

    Definition Classes
    Formats
  7. def +(extraHints: TypeHints): Formats

    Adds the specified type hints to this formats.

    Adds the specified type hints to this formats.

    Definition Classes
    Formats
  8. def ++(newSerializers: Iterable[Serializer[_]]): Formats

    Adds the specified custom serializers to this formats.

    Adds the specified custom serializers to this formats.

    Definition Classes
    Formats
  9. def -(serializer: Serializer[_]): Formats

    Removes the specified custom serializer from this formats.

    Removes the specified custom serializer from this formats.

    Definition Classes
    Formats
  10. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. 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
  12. def alwaysEscapeUnicode: Boolean
    Definition Classes
    Formats
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. val companions: List[(Class[_], AnyRef)]
    Definition Classes
    DefaultFormatsFormats
  16. 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
  17. val customKeySerializers: List[KeySerializer[_]]
    Definition Classes
    DefaultFormatsFormats
  18. val customSerializers: List[Serializer[_]]
    Definition Classes
    DefaultFormatsFormats
  19. val dateFormat: DateFormat
    Definition Classes
    DefaultFormatsFormats
  20. def dateFormatter: SimpleDateFormat
    Attributes
    protected
  21. val emptyValueStrategy: EmptyValueStrategy
    Definition Classes
    DefaultFormatsFormats
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. val extractionNullStrategy: ExtractionNullStrategy
    Definition Classes
    DefaultFormatsFormats
  25. val fieldSerializers: List[(Class[_], FieldSerializer[_])]
    Definition Classes
    DefaultFormatsFormats
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def lossless: Formats

    Lossless date format includes milliseconds too.

  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def nonStrict: Formats
    Definition Classes
    Formats
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. val parameterNameReader: reflect.ParameterNameReader

    Parameter name reading strategy.

    Parameter name reading strategy. By default 'paranamer' is used.

    Definition Classes
    DefaultFormatsFormats
  36. def preservingEmptyValues: Formats
    Definition Classes
    Formats
  37. val primitives: Set[Type]
    Definition Classes
    DefaultFormatsFormats
  38. def richSerializers: List[RichSerializer[_]]
    Definition Classes
    Formats
  39. def skippingEmptyValues: Formats
    Definition Classes
    Formats
  40. def strict: Formats
    Definition Classes
    Formats
  41. def strictArrayExtraction: Boolean
    Definition Classes
    Formats
  42. def strictFieldDeserialization: Boolean
    Definition Classes
    DefaultFormatsFormats
  43. def strictMapExtraction: Boolean
    Definition Classes
    Formats
  44. val strictOptionParsing: Boolean
    Definition Classes
    DefaultFormatsFormats
  45. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  46. def toString(): String
    Definition Classes
    AnyRef → Any
  47. val typeHints: TypeHints
    Definition Classes
    DefaultFormatsFormats
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. val wantsBigDecimal: Boolean
    Definition Classes
    DefaultFormatsFormats
  52. val wantsBigInt: Boolean
    Definition Classes
    DefaultFormatsFormats
  53. def withBigDecimal: Formats
    Definition Classes
    Formats
  54. def withBigInt: Formats
    Definition Classes
    Formats
  55. def withCompanions(comps: (Class[_], AnyRef)*): Formats
    Definition Classes
    Formats
  56. def withDouble: Formats
    Definition Classes
    Formats
  57. def withEmptyValueStrategy(strategy: EmptyValueStrategy): Formats
    Definition Classes
    Formats
  58. def withEscapeUnicode: Formats
    Definition Classes
    Formats
  59. def withExtractionNullStrategy(strategy: ExtractionNullStrategy): Formats
    Definition Classes
    Formats
  60. def withHints(hints: TypeHints): Formats

    Default formats with given TypeHints.

  61. def withLong: Formats
    Definition Classes
    Formats
  62. 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
  63. def withStrictArrayExtraction: Formats
    Definition Classes
    Formats
  64. def withStrictFieldDeserialization: Formats
    Definition Classes
    Formats
  65. def withStrictMapExtraction: Formats
    Definition Classes
    Formats
  66. def withStrictOptionParsing: Formats
    Definition Classes
    Formats

Deprecated Value Members

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. def disallowNull: Formats
    Definition Classes
    Formats
    Annotations
    @deprecated
    Deprecated

    (Since version 3.7.0) Use withNullExtractionStrategy instead

Inherited from Formats

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped