Trait/Object

org.json4s

Formats

Related Docs: object Formats | package json4s

Permalink

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

    Permalink

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

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

    Permalink

    Adds the specified custom key serializer to this formats.

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

    Permalink

    Adds the specified custom serializer to this formats.

  6. def +(extraHints: TypeHints): Formats

    Permalink

    Adds the specified type hints to this formats.

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

    Permalink

    Adds the specified custom serializers to this formats.

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

    Permalink

    Removes the specified custom serializer from this formats.

  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def addKeySerializers(newKeySerializers: Iterable[KeySerializer[_]]): Formats

    Permalink

    Adds the specified custom serializers to this formats.

  11. def allowNull: Boolean

    Permalink
  12. def alwaysEscapeUnicode: Boolean

    Permalink
  13. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
  17. def customKeyDeserializer(implicit format: Formats): PartialFunction[(TypeInfo, String), Any]

    Permalink
  18. def customKeySerializer(implicit format: Formats): PartialFunction[Any, String]

    Permalink
  19. def customKeySerializers: List[KeySerializer[_]]

    Permalink
  20. def customSerializer(implicit format: Formats): PartialFunction[Any, JValue]

    Permalink
  21. def customSerializers: List[Serializer[_]]

    Permalink
  22. def disallowNull: Formats

    Permalink
  23. def emptyValueStrategy: EmptyValueStrategy

    Permalink
  24. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
  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. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def nonStrict: Formats

    Permalink
  33. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  35. def parameterNameReader: reflect.ParameterNameReader

    Permalink

    Parameter name reading strategy.

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

  36. def preservingEmptyValues: Formats

    Permalink
  37. def primitives: Set[Type]

    Permalink
  38. def skippingEmptyValues: Formats

    Permalink
  39. def strict: Formats

    Permalink
  40. def strictArrayExtraction: Boolean

    Permalink
  41. def strictOptionParsing: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  44. def typeHintFieldName: String

    Permalink

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

  45. def typeHints: TypeHints

    Permalink
  46. final def wait(): Unit

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

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

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

    Permalink
  50. def wantsBigInt: Boolean

    Permalink
  51. def withBigDecimal: Formats

    Permalink
  52. def withBigInt: Formats

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

    Permalink
  54. def withDouble: Formats

    Permalink
  55. def withEmptyValueStrategy(strategy: EmptyValueStrategy): Formats

    Permalink
  56. def withEscapeUnicode: Formats

    Permalink
  57. def withLong: Formats

    Permalink
  58. def withStrictArrayExtraction: Formats

    Permalink
  59. def withStrictOptionParsing: Formats

    Permalink
  60. def withTypeHintFieldName(name: String): Formats

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped