Object/Trait

org.json4s

DefaultFormats

Related Docs: trait DefaultFormats | package json4s

Permalink

object DefaultFormats extends DefaultFormats

Default date format is UTC time.

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +[A](newSerializer: FieldSerializer[A]): Formats

    Permalink

    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

    Permalink

    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

    Permalink

    Adds the specified custom serializer to this formats.

    Adds the specified custom serializer to this formats.

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

    Permalink

    Adds the specified custom serializer to this formats.

    Adds the specified custom serializer to this formats.

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

    Permalink

    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

    Permalink

    Adds the specified custom serializers to this formats.

    Adds the specified custom serializers to this formats.

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  11. val UTC: TimeZone

    Permalink
  12. def addKeySerializers(newKeySerializers: Iterable[KeySerializer[_]]): Formats

    Permalink

    Adds the specified custom serializers to this formats.

    Adds the specified custom serializers to this formats.

    Definition Classes
    Formats
  13. def alwaysEscapeUnicode: Boolean

    Permalink
    Definition Classes
    Formats
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val companions: List[(Class[_], AnyRef)]

    Permalink
    Definition Classes
    DefaultFormatsFormats
  17. def considerCompanionConstructors: Boolean

    Permalink

    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
  18. val customKeySerializers: List[KeySerializer[_]]

    Permalink
    Definition Classes
    DefaultFormatsFormats
  19. val customSerializers: List[Serializer[_]]

    Permalink
    Definition Classes
    DefaultFormatsFormats
  20. val dateFormat: DateFormat

    Permalink
    Definition Classes
    DefaultFormatsFormats
  21. def dateFormatter: SimpleDateFormat

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultFormats
  22. val emptyValueStrategy: EmptyValueStrategy

    Permalink
    Definition Classes
    DefaultFormatsFormats
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. val extractionNullStrategy: ExtractionNullStrategy

    Permalink
    Definition Classes
    DefaultFormatsFormats
  26. val fieldSerializers: List[(Class[_], FieldSerializer[_])]

    Permalink
    Definition Classes
    DefaultFormatsFormats
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def lossless: Formats

    Permalink

    Lossless date format includes milliseconds too.

    Lossless date format includes milliseconds too.

    Definition Classes
    DefaultFormats
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. def nonStrict: Formats

    Permalink
    Definition Classes
    Formats
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. val parameterNameReader: reflect.ParameterNameReader

    Permalink

    Parameter name reading strategy.

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

    Definition Classes
    DefaultFormatsFormats
  37. def preservingEmptyValues: Formats

    Permalink
    Definition Classes
    Formats
  38. val primitives: Set[Type]

    Permalink
    Definition Classes
    DefaultFormatsFormats
  39. def richSerializers: List[RichSerializer[_]]

    Permalink
    Definition Classes
    Formats
  40. def skippingEmptyValues: Formats

    Permalink
    Definition Classes
    Formats
  41. def strict: Formats

    Permalink
    Definition Classes
    Formats
  42. def strictArrayExtraction: Boolean

    Permalink
    Definition Classes
    Formats
  43. def strictFieldDeserialization: Boolean

    Permalink
    Definition Classes
    DefaultFormatsFormats
  44. def strictMapExtraction: Boolean

    Permalink
    Definition Classes
    Formats
  45. val strictOptionParsing: Boolean

    Permalink
    Definition Classes
    DefaultFormatsFormats
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  48. val typeHints: TypeHints

    Permalink
    Definition Classes
    DefaultFormatsFormats
  49. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. val wantsBigDecimal: Boolean

    Permalink
    Definition Classes
    DefaultFormatsFormats
  53. val wantsBigInt: Boolean

    Permalink
    Definition Classes
    DefaultFormatsFormats
  54. def withBigDecimal: Formats

    Permalink
    Definition Classes
    Formats
  55. def withBigInt: Formats

    Permalink
    Definition Classes
    Formats
  56. def withCompanions(comps: (Class[_], AnyRef)*): Formats

    Permalink
    Definition Classes
    Formats
  57. def withDouble: Formats

    Permalink
    Definition Classes
    Formats
  58. def withEmptyValueStrategy(strategy: EmptyValueStrategy): Formats

    Permalink
    Definition Classes
    Formats
  59. def withEscapeUnicode: Formats

    Permalink
    Definition Classes
    Formats
  60. def withExtractionNullStrategy(strategy: ExtractionNullStrategy): Formats

    Permalink
    Definition Classes
    Formats
  61. def withHints(hints: TypeHints): Formats

    Permalink

    Default formats with given TypeHints.

    Default formats with given TypeHints.

    Definition Classes
    DefaultFormats
  62. def withLong: Formats

    Permalink
    Definition Classes
    Formats
  63. def withPre36DeserializationBehavior: Formats

    Permalink

    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
  64. def withStrictArrayExtraction: Formats

    Permalink
    Definition Classes
    Formats
  65. def withStrictFieldDeserialization: Formats

    Permalink
    Definition Classes
    Formats
  66. def withStrictMapExtraction: Formats

    Permalink
    Definition Classes
    Formats
  67. def withStrictOptionParsing: Formats

    Permalink
    Definition Classes
    Formats

Deprecated Value Members

  1. def customDeserializer(implicit format: Formats): PartialFunction[(TypeInfo, JValue), Any]

    Permalink
    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]

    Permalink
    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]

    Permalink
    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]

    Permalink
    Definition Classes
    Formats
    Annotations
    @deprecated
    Deprecated

    (Since version 3.6.4) Use the internal methods in the companion object instead.

  5. def disallowNull: Formats

    Permalink
    Definition Classes
    Formats
    Annotations
    @deprecated
    Deprecated

    (Since version 3.7.0) Use withNullExtractionStrategy instead

Inherited from DefaultFormats

Inherited from Formats

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped