Writes

play.api.libs.json.Writes
See theWrites companion object
trait Writes[A]

Json serializer: write an implicit to define a serializer for any type

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BigDecimalWrites.type
object BigIntWrites.type
object BigIntegerWrites.type
object BooleanWrites.type
object ByteWrites.type
object DefaultDateWrites.type
object DoubleWrites.type
object FloatWrites.type
object IntWrites.type
object JsValueWrites.type
object JsonNodeWrites.type
object LongWrites.type
object ShortWrites.type
object StringWrites.type
object UuidWrites.type
trait Format[A]
trait OFormat[A]
trait OWrites[A]
Show all
Self type
Writes[A]

Members list

Value members

Abstract methods

def writes(o: A): JsValue
Implicitly added by OptionWrites

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Attributes

def writes(o: A): JsValue
Implicitly added by Tuple1W

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Attributes

def writes(o: A): JsObject
Implicitly added by genericMapWrites

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Attributes

def writes(o: A): JsObject
Implicitly added by mapWrites

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Attributes

def writes(o: A): JsValue
Implicitly added by someWrites

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Attributes

def writes(o: A): JsValue

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Attributes

Concrete methods

def contramap[B](f: B => A): Writes[B]
Implicitly added by OptionWrites

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Attributes

def contramap[B](f: B => A): Writes[B]
Implicitly added by Tuple1W

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Attributes

def contramap[B](f: B => A): Writes[B]
Implicitly added by someWrites

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Attributes

def contramap[B](f: B => A): Writes[B]

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Returns a new instance that first converts a B value to a A one, before converting this A value into a JsValue.

Attributes

def narrow[B <: A]: Writes[B]
Implicitly added by OptionWrites

Narrows to any B super-type of A.

Narrows to any B super-type of A.

Attributes

def narrow[B <: A]: Writes[B]
Implicitly added by Tuple1W

Narrows to any B super-type of A.

Narrows to any B super-type of A.

Attributes

def narrow[B <: A]: Writes[B]
Implicitly added by someWrites

Narrows to any B super-type of A.

Narrows to any B super-type of A.

Attributes

def narrow[B <: A]: Writes[B]

Narrows to any B super-type of A.

Narrows to any B super-type of A.

Attributes

def transform(transformer: JsValue => JsValue): Writes[A]
Implicitly added by OptionWrites

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

Attributes

def transform(transformer: Writes[JsValue]): Writes[A]
Implicitly added by OptionWrites

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

def transform(transformer: JsValue => JsValue): Writes[A]
Implicitly added by Tuple1W

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

Attributes

def transform(transformer: Writes[JsValue]): Writes[A]
Implicitly added by Tuple1W

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

def transform(transformer: JsObject => JsObject): OWrites[A]
Implicitly added by genericMapWrites

Transforms the resulting JsObject using a transformer function.

Transforms the resulting JsObject using a transformer function.

Attributes

def transform(transformer: OWrites[JsObject]): OWrites[A]
Implicitly added by genericMapWrites

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

def transform(transformer: JsObject => JsObject): OWrites[A]
Implicitly added by mapWrites

Transforms the resulting JsObject using a transformer function.

Transforms the resulting JsObject using a transformer function.

Attributes

def transform(transformer: OWrites[JsObject]): OWrites[A]
Implicitly added by mapWrites

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

def transform(transformer: JsValue => JsValue): Writes[A]
Implicitly added by someWrites

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

Attributes

def transform(transformer: Writes[JsValue]): Writes[A]
Implicitly added by someWrites

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

def transform(transformer: JsValue => JsValue): Writes[A]

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

Attributes

def transform(transformer: Writes[JsValue]): Writes[A]

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

Inherited methods

def transform(transformer: Writes[JsValue]): Writes[A]
Implicitly added by genericMapWrites

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

Inherited from:
Writes
def transform(transformer: JsValue => JsValue): Writes[A]
Implicitly added by genericMapWrites

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

Attributes

Inherited from:
Writes
def transform(transformer: Writes[JsValue]): Writes[A]
Implicitly added by mapWrites

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Attributes

Inherited from:
Writes
def transform(transformer: JsValue => JsValue): Writes[A]
Implicitly added by mapWrites

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

Attributes

Inherited from:
Writes