Trait

play.api.libs.json

EnvWrites

Related Doc: package json

Permalink

trait EnvWrites extends AnyRef

Source
EnvWrites.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnvWrites
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

    Permalink

    Typeclass to implement way of formatting of 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 val DefaultInstantWrites: Writes[Instant]

    Permalink

    The default typeclass to write a java.time.Instant, using '2011-12-03T10:15:30Z' format.

  5. implicit val DefaultLocalDateTimeWrites: Writes[LocalDateTime]

    Permalink

    The default typeclass to write a java.time.LocalDateTime, using '2011-12-03T10:15:30' format.

  6. implicit val DefaultLocalDateWrites: Writes[LocalDate]

    Permalink

    The default typeclass to write a java.time.LocalDate, using '2011-12-03' format.

  7. implicit val DefaultLocalTimeWrites: Writes[LocalTime]

    Permalink

    The default typeclass to write a java.time.LocalTime, using '10:15:30' format.

  8. implicit val DefaultOffsetDateTimeWrites: Writes[OffsetDateTime]

    Permalink

    The default typeclass to write a java.time.OffsetDateTime, using '2011-12-03T10:15:30+02:00' format.

  9. implicit val DefaultZonedDateTimeWrites: Writes[ZonedDateTime]

    Permalink

    The default typeclass to write a java.time.ZonedDateTime, using '2011-12-03T10:15:30+01:00[Europe/Paris]' format.

  10. val InstantEpochMilliWrites: Writes[Instant]

    Permalink

    Serializer for java.time.Instant as JSON number.

    Serializer for java.time.Instant as JSON number. The number of milliseconds since epoch is used.

    import java.time.Instant
    import play.api.libs.json.Writes
    
    implicit val inWrites = Writes.InstantNumberWrites
  11. implicit object JsonNodeWrites extends Writes[JsonNode]

    Permalink

    Serializer for Jackson JsonNode

  12. val LocalDateEpochMilliWrites: Writes[LocalDate]

    Permalink

    Serializer for java.time.LocalDate as JSON number.

    Serializer for java.time.LocalDate as JSON number. The number of milliseconds since epoch is used.

    import java.time.LocalDate
    import play.api.libs.json.Writes
    
    implicit val ldnWrites = Writes.LocalDateEpochMilliWrites
  13. val LocalDateTimeEpochMilliWrites: Writes[LocalDateTime]

    Permalink

    Serializer for java.time.LocalDateTime as JSON number.

    Serializer for java.time.LocalDateTime as JSON number. The number of milliseconds since epoch is used.

    import java.time.LocalDateTime
    import play.api.libs.json.Writes
    
    implicit val ldtnWrites = Writes.LocalDateTimeEpochMilliWrites
  14. val LocalTimeNanoOfDayWrites: Writes[LocalTime]

    Permalink

    Serializer for java.time.LocalTime as JSON number.

    Serializer for java.time.LocalTime as JSON number. The nano of day is written.

    import java.time.LocalTime
    import play.api.libs.json.Writes
    
    implicit val ltnWrites = Writes.LocalTimeNumberWrites
  15. object TemporalFormatter

    Permalink

    Formatting companion

  16. implicit val ZoneIdWrites: Writes[ZoneId]

    Permalink

    Serializer for java.time.ZoneId as JSON string.

  17. val ZonedDateTimeEpochMilliWrites: Writes[ZonedDateTime]

    Permalink

    Serializer for java.time.ZonedDateTime as JSON number.

    Serializer for java.time.ZonedDateTime as JSON number. The number of milliseconds since epoch is used.

    import java.time.ZonedDateTime
    import play.api.libs.json.Writes
    
    implicit val zdtnWrites = Writes.ZonedDateTimeEpochMilliWrites
  18. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  26. val javaDurationMillisWrites: Writes[Duration]

    Permalink

    Serializer of Java Duration as a number of milliseconds.

  27. implicit val javaDurationWrites: Writes[Duration]

    Permalink

    Serializer of Java Duration using ISO representation (e.g.

    Serializer of Java Duration using ISO representation (e.g. PT1S for 1 second).

  28. implicit val javaPeriodWrites: Writes[Period]

    Permalink

    Serializer of Java Period using ISO representation (e.g.

    Serializer of Java Period using ISO representation (e.g. P2D for 2 days).

  29. val localeObjectWrites: OWrites[Locale]

    Permalink

    Serializer for a Locale using a object representation

  30. implicit val localeWrites: Writes[Locale]

    Permalink

    Serializer for a Locale using the IETF BCP 47 string representation

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  35. def temporalWrites[A <: Temporal, B](formatting: B)(implicit f: (B) ⇒ TemporalFormatter[A]): Writes[A]

    Permalink

    Serializer for Java8 temporal types (e.g.

    Serializer for Java8 temporal types (e.g. java.time.LocalDateTime) to be written as JSON string.

    A

    the Java8 temporal type to be considered: LocalDateTime, ZonedDateTime, Instant

    B

    Type of formatting argument

    formatting

    an argument to instantiate formatter

    import java.time.LocalDateTime
    import play.api.libs.json.Writes
    implicit val temporalWrites: Writes[LocalDateTime] =
      temporalWrites[LocalDateTime, DateTimeFormatter](
        DateTimeFormatter.ISO_LOCAL_DATE_TIME)
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. object DefaultJodaDateWrites extends Writes[DateTime]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.JodaDateNumberWrites

  2. object DefaultJodaLocalDateWrites extends Writes[LocalDate]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.DefaultJodaLocalDateWrites

  3. object DefaultJodaLocalTimeWrites extends Writes[LocalTime]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.DefaultJodaLocalTimeWrites

  4. def jodaDateWrites(pattern: String): Writes[DateTime]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.jodaDateWrites

  5. def jodaLocalDateWrites(pattern: String): Writes[LocalDate]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.jodaLocalDateWrites

  6. def jodaLocalTimeWrites(pattern: String): Writes[LocalTime]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.jodaLocalTimeWrites

Inherited from AnyRef

Inherited from Any

Ungrouped