Trait

play.api.libs.json

DefaultReads

Related Doc: package json

Permalink

trait DefaultReads extends LowPriorityDefaultReads

Default deserializer type classes.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DefaultReads
  2. LowPriorityDefaultReads
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait TemporalParser[T <: Temporal] extends AnyRef

    Permalink

    Typeclass to implement way of parsing string as Java8 temporal types.

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit def ArrayReads[T](implicit arg0: Reads[T], arg1: ClassTag[T]): Reads[Array[T]]

    Permalink

    Deserializer for Array[T] types.

  5. implicit object BooleanReads extends Reads[Boolean]

    Permalink

    Deserializer for Boolean types.

  6. implicit object ByteReads extends Reads[Byte]

    Permalink

    Deserializer for Byte types.

  7. implicit val DefaultDateReads: Reads[Date]

    Permalink

    the default implicit java.util.Date reads

  8. implicit val DefaultJodaDateReads: Reads[DateTime]

    Permalink

    the default implicit JodaDate reads

  9. implicit val DefaultJodaLocalDateReads: Reads[LocalDate]

    Permalink

    the default implicit joda.time.LocalDate reads

  10. implicit object DoubleReads extends Reads[Double]

    Permalink

    Deserializer for Double types.

  11. implicit object FloatReads extends Reads[Float]

    Permalink

    Deserializer for Float types.

  12. implicit object IntReads extends Reads[Int]

    Permalink

    Deserializer for Int types.

  13. object IsoDateReads extends Reads[Date]

    Permalink

    ISO 8601 Reads

  14. implicit object JsArrayReads extends Reads[JsArray]

    Permalink
  15. implicit object JsBooleanReads extends Reads[JsBoolean]

    Permalink
  16. def JsErrorObj(knownValue: JsValue, key: String, args: JsValue*): JsObject

    Permalink

    builds a JsErrorObj JsObject { VAL : "current known erroneous jsvalue", ERR : "the i18n key of the error msg", ARGS : "the args for the error msg" (JsArray) }

  17. implicit object JsNumberReads extends Reads[JsNumber]

    Permalink
  18. implicit object JsObjectReads extends Reads[JsObject]

    Permalink

    Deserializer for JsObject.

  19. implicit object JsStringReads extends Reads[JsString]

    Permalink
  20. implicit object JsValueReads extends Reads[JsValue]

    Permalink

    Deserializer for JsValue.

  21. implicit object LongReads extends Reads[Long]

    Permalink

    Deserializer for Long types.

  22. implicit object ShortReads extends Reads[Short]

    Permalink

    Deserializer for Short types.

  23. implicit object StringReads extends Reads[String]

    Permalink

    Deserializer for String types.

  24. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  25. implicit val bigDecReads: Reads[BigDecimal]

    Permalink

    Deserializer for BigDecimal

  26. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def dateReads(pattern: String, corrector: (String) ⇒ String = identity): Reads[Date]

    Permalink

    Reads for the java.util.Date type.

    Reads for the java.util.Date type.

    pattern

    a date pattern, as specified in java.text.SimpleDateFormat.

    corrector

    a simple string transformation function that can be used to transform input String before parsing. Useful when standards are not exactly respected and require a few tweaks

  28. def enumNameReads[E <: Enumeration](enum: E): Reads[enumNameReads.E.Value]

    Permalink

    Reads for scala.Enumeration types using the name.

    Reads for scala.Enumeration types using the name.

    enum

    a scala.Enumeration.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  35. implicit val javaBigDecReads: Reads[BigDecimal]

    Permalink

    Deserializer for BigDecimal

  36. def jodaDateReads(pattern: String, corrector: (String) ⇒ String = identity): Reads[DateTime]

    Permalink

    Reads for the org.joda.time.DateTime type.

    Reads for the org.joda.time.DateTime type.

    pattern

    a date pattern, as specified in java.text.SimpleDateFormat.

    corrector

    a simple string transformation function that can be used to transform input String before parsing. Useful when standards are not exactly respected and require a few tweaks

  37. def jodaLocalDateReads(pattern: String, corrector: (String) ⇒ String = identity): Reads[LocalDate]

    Permalink

    Reads for the org.joda.time.LocalDate type.

    Reads for the org.joda.time.LocalDate type.

    pattern

    a date pattern, as specified in org.joda.time.format.DateTimeFormat.

    corrector

    string transformation function (See jodaDateReads)

  38. def localDateTimeReads[T](parsing: T, corrector: (String) ⇒ String = identity)(implicit p: (T) ⇒ TemporalParser[LocalDateTime]): Reads[LocalDateTime]

    Permalink

    Reads for the java.time.LocalDateTime type.

    Reads for the java.time.LocalDateTime type. When input value doesn't specify the time zone, then java.time.ZoneId.systemDefault is used.

    T

    Type of argument to instantiate date/time parser

    parsing

    Argument to instantiate date/time parser. Actually either a pattern (string) or a formatter (java.time.format.DateTimeFormatter)

    corrector

    a simple string transformation function that can be used to transform input String before parsing. Useful when standards are not exactly respected and require a few tweaks. Function identity can be passed if no correction is needed.

    p

    Typeclass instance based on parsing

    See also

    TemporalFormatter

    import play.api.libs.json.Java8Reads.localDateTimeReads
    val customReads1 = localDateTimeReads("dd/MM/yyyy, HH:mm:ss")
    val customReads2 = localDateTimeReads(DateTimeFormatter.ISO_DATE_TIME)
    val customReads3 = localDateTimeReads(
      DateTimeFormatter.ISO_DATE_TIME, _.drop(1))
  39. implicit def mapReads[V](implicit fmtv: Reads[V]): Reads[Map[String, V]]

    Permalink

    Deserializer for Map[String,V] types.

  40. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  43. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  45. implicit def traversableReads[F[_], A](implicit bf: CanBuildFrom[F[_], A, F[A]], ra: Reads[A]): Reads[F[A]]

    Permalink

    Generic deserializer for collections types.

    Generic deserializer for collections types.

    Definition Classes
    LowPriorityDefaultReads
  46. def uuidReader(checkUuuidValidity: Boolean = false): Reads[UUID]

    Permalink

    Deserializer for java.util.UUID

  47. implicit val uuidReads: Reads[UUID]

    Permalink
  48. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LowPriorityDefaultReads

Inherited from AnyRef

Inherited from Any

Ungrouped