sealed trait LowPriorityWrites extends EnvWrites
- Alphabetic
- By Inheritance
- LowPriorityWrites
- EnvWrites
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
TemporalFormatter[T <: Temporal] extends AnyRef
Typeclass to implement way of formatting of Java8 temporal types.
Typeclass to implement way of formatting of Java8 temporal types.
- Definition Classes
- EnvWrites
Value Members
-
implicit
object
JsonNodeWrites extends Writes[JsonNode]
Serializer for Jackson JsonNode
Serializer for Jackson JsonNode
- Definition Classes
- EnvWrites
-
object
TemporalFormatter
Formatting companion
Formatting companion
- Definition Classes
- EnvWrites
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
val
DefaultInstantWrites: Writes[Instant]
The default typeclass to write a
java.time.Instant
, using '2011-12-03T10:15:30Z' format.The default typeclass to write a
java.time.Instant
, using '2011-12-03T10:15:30Z' format.- Definition Classes
- EnvWrites
-
implicit
val
DefaultLocalDateTimeWrites: Writes[LocalDateTime]
The default typeclass to write a
java.time.LocalDateTime
, using '2011-12-03T10:15:30' format.The default typeclass to write a
java.time.LocalDateTime
, using '2011-12-03T10:15:30' format.- Definition Classes
- EnvWrites
-
implicit
val
DefaultLocalDateWrites: Writes[LocalDate]
The default typeclass to write a
java.time.LocalDate
, using '2011-12-03' format.The default typeclass to write a
java.time.LocalDate
, using '2011-12-03' format.- Definition Classes
- EnvWrites
-
implicit
val
DefaultLocalTimeWrites: Writes[LocalTime]
The default typeclass to write a
java.time.LocalTime
, using '10:15:30' format.The default typeclass to write a
java.time.LocalTime
, using '10:15:30' format.- Definition Classes
- EnvWrites
-
implicit
val
DefaultOffsetDateTimeWrites: Writes[OffsetDateTime]
The default typeclass to write a
java.time.OffsetDateTime
, using '2011-12-03T10:15:30+02:00' format.The default typeclass to write a
java.time.OffsetDateTime
, using '2011-12-03T10:15:30+02:00' format.- Definition Classes
- EnvWrites
-
implicit
val
DefaultZonedDateTimeWrites: Writes[ZonedDateTime]
The default typeclass to write a
java.time.ZonedDateTime
, using '2011-12-03T10:15:30+01:00[Europe/Paris]' format.The default typeclass to write a
java.time.ZonedDateTime
, using '2011-12-03T10:15:30+01:00[Europe/Paris]' format.- Definition Classes
- EnvWrites
-
val
InstantEpochMilliWrites: Writes[Instant]
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
- Definition Classes
- EnvWrites
-
val
LocalDateEpochMilliWrites: Writes[LocalDate]
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
- Definition Classes
- EnvWrites
-
val
LocalDateTimeEpochMilliWrites: Writes[LocalDateTime]
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
- Definition Classes
- EnvWrites
-
val
LocalTimeNanoOfDayWrites: Writes[LocalTime]
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
- Definition Classes
- EnvWrites
-
implicit
val
ZoneIdWrites: Writes[ZoneId]
Serializer for
java.time.ZoneId
as JSON string.Serializer for
java.time.ZoneId
as JSON string.- Definition Classes
- EnvWrites
-
val
ZonedDateTimeEpochMilliWrites: Writes[ZonedDateTime]
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
- Definition Classes
- EnvWrites
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
javaDurationMillisWrites: Writes[Duration]
Serializer of Java Duration as a number of milliseconds.
Serializer of Java Duration as a number of milliseconds.
- Definition Classes
- EnvWrites
-
implicit
val
javaDurationWrites: Writes[Duration]
Serializer of Java Duration using ISO representation (e.g.
Serializer of Java Duration using ISO representation (e.g. PT1S for 1 second).
- Definition Classes
- EnvWrites
-
implicit
val
javaPeriodWrites: Writes[Period]
Serializer of Java Period using ISO representation (e.g.
Serializer of Java Period using ISO representation (e.g. P2D for 2 days).
- Definition Classes
- EnvWrites
-
val
localeObjectWrites: OWrites[Locale]
Serializer for a
Locale
using a object representationSerializer for a
Locale
using a object representation- Definition Classes
- EnvWrites
-
implicit
val
localeWrites: Writes[Locale]
Serializer for a
Locale
using the IETF BCP 47 string representationSerializer for a
Locale
using the IETF BCP 47 string representation- Definition Classes
- EnvWrites
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
temporalWrites[A <: Temporal, B](formatting: B)(implicit f: (B) ⇒ TemporalFormatter[A]): Writes[A]
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)
- Definition Classes
- EnvWrites
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
def
traversableWrites[A](implicit arg0: Writes[A]): Writes[Traversable[A]]
Serializer for Traversables types.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
object
DefaultJodaDateWrites extends Writes[DateTime]
- Definition Classes
- EnvWrites
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.JodaDateNumberWrites
-
object
DefaultJodaLocalDateWrites extends Writes[LocalDate]
- Definition Classes
- EnvWrites
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.DefaultJodaLocalDateWrites
-
object
DefaultJodaLocalTimeWrites extends Writes[LocalTime]
- Definition Classes
- EnvWrites
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.DefaultJodaLocalTimeWrites
-
def
jodaDateWrites(pattern: String): Writes[DateTime]
- Definition Classes
- EnvWrites
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.jodaDateWrites
-
def
jodaLocalDateWrites(pattern: String): Writes[LocalDate]
- Definition Classes
- EnvWrites
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.jodaLocalDateWrites
-
def
jodaLocalTimeWrites(pattern: String): Writes[LocalTime]
- Definition Classes
- EnvWrites
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Include play-json-joda as a dependency and use JodaWrites.jodaLocalTimeWrites