org.json4s

Formats

trait Formats extends Serializable

Formats to use when converting JSON. Formats are usually configured by using an implicit parameter:

implicit val formats = org.json4s.DefaultFormats

Self Type
Formats
Annotations
@implicitNotFound( ... )
Source
Formats.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Formats
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def dateFormat: DateFormat

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Adds a field serializer for a given type to this formats.

  5. def +(newSerializer: KeySerializer[_]): Formats

    Adds the specified custom key serializer to this formats.

  6. def +(newSerializer: Serializer[_]): Formats

    Adds the specified custom serializer to this formats.

  7. def +(extraHints: TypeHints): Formats

    Adds the specified type hints to this formats.

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

    Adds the specified custom serializers to this formats.

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

    Removes the specified custom serializer from this formats.

  10. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  12. def addKeySerializers(newKeySerializers: Iterable[KeySerializer[_]]): Formats

    Adds the specified custom serializers to this formats.

  13. def allowNull: Boolean

  14. def alwaysEscapeUnicode: Boolean

  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

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

  18. def customKeySerializers: List[KeySerializer[_]]

  19. def customSerializers: List[Serializer[_]]

  20. def disallowNull: Formats

  21. def emptyValueStrategy: EmptyValueStrategy

  22. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  24. def fieldSerializers: List[(Class[_], FieldSerializer[_])]

  25. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. def nonStrict: Formats

  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def parameterNameReader: reflect.ParameterNameReader

    Parameter name reading strategy.

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

  34. def preservingEmptyValues: Formats

  35. def primitives: Set[Type]

  36. def skippingEmptyValues: Formats

  37. def strict: Formats

  38. def strictArrayExtraction: Boolean

  39. def strictOptionParsing: Boolean

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. def typeHintFieldName: String

    The name of the field in JSON where type hints are added (jsonClass by default)

  43. def typeHints: TypeHints

  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def wantsBigDecimal: Boolean

  48. def wantsBigInt: Boolean

  49. def withBigDecimal: Formats

  50. def withBigInt: Formats

  51. def withCompanions(comps: (Class[_], AnyRef)*): Formats

  52. def withDouble: Formats

  53. def withEmptyValueStrategy(strategy: EmptyValueStrategy): Formats

  54. def withEscapeUnicode: Formats

  55. def withLong: Formats

  56. def withStrictArrayExtraction: Formats

  57. def withStrictOptionParsing: Formats

  58. def withTypeHintFieldName(name: String): Formats

Deprecated Value Members

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

    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]

    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]

    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]

    Annotations
    @deprecated
    Deprecated

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped