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
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def dateFormat: DateFormat

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

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

    Adds the specified custom key serializer to this formats.

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

    Adds the specified custom serializer to this formats.

  6. def +(extraHints: TypeHints): Formats

    Adds the specified type hints to this formats.

  7. def ++(newSerializers: Traversable[Serializer[_]]): Formats

    Adds the specified custom serializers to this formats.

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

    Removes the specified custom serializer from this formats.

  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def addKeySerializers(newKeySerializers: Traversable[KeySerializer[_]]): Formats

    Adds the specified custom serializers to this formats.

  11. def allowNull: Boolean
  12. def alwaysEscapeUnicode: Boolean
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  15. def companions: List[(Class[_], AnyRef)]
  16. def customDeserializer(implicit format: Formats): PartialFunction[(TypeInfo, JValue), Any]
  17. def customKeyDeserializer(implicit format: Formats): PartialFunction[(TypeInfo, String), Any]
  18. def customKeySerializer(implicit format: Formats): PartialFunction[Any, String]
  19. def customKeySerializers: List[KeySerializer[_]]
  20. def customSerializer(implicit format: Formats): PartialFunction[Any, JValue]
  21. def customSerializers: List[Serializer[_]]
  22. def emptyValueStrategy: EmptyValueStrategy
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  25. def fieldSerializers: List[(Class[_], FieldSerializer[_])]
  26. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]
    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. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def nonStrict: Formats
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def parameterNameReader: reflect.ParameterNameReader

    Parameter name reading strategy.

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

  35. def preservingEmptyValues: Formats
  36. def primitives: Set[Type]
  37. def skippingEmptyValues: Formats
  38. def strict: Formats
  39. def strictArrayExtraction: Boolean
  40. def strictOptionParsing: Boolean
  41. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. def typeHintFieldName: String

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

  44. def typeHints: TypeHints
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  48. def wantsBigDecimal: Boolean
  49. def wantsBigInt: Boolean
  50. def withBigDecimal: Formats
  51. def withBigInt: Formats
  52. def withCompanions(comps: (Class[_], AnyRef)*): Formats
  53. def withDouble: Formats
  54. def withEmptyValueStrategy(strategy: EmptyValueStrategy): Formats
  55. def withEscapeUnicode: Formats
  56. def withLong: Formats
  57. def withStrictArrayExtraction: Formats
  58. def withStrictOptionParsing: Formats
  59. def withTypeHintFieldName(name: String): Formats

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped