Writes

@implicitNotFound("No Json serializer found for type ${A}. Try to implement an implicit Writes or Format for this type.") trait Writes[A]

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

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

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

Converts the A value into a JsValue.

Converts the A value into a JsValue.

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

Converts the A value into a JsValue.

Converts the A value into a JsValue.

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

Converts the A value into a JsValue.

Converts the A value into a JsValue.

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

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Concrete methods

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.

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.

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.

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.

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.

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.

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.

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

Narrows to any B super-type of A.

Narrows to any B super-type of A.

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.

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

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.

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

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.

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

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.

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

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.

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

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

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

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

Transforms the resulting JsValue using a Writes[JsValue].

Transforms the resulting JsValue using a Writes[JsValue].

Inherited methods

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

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.

Inherited from
Writes
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].

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.

Inherited from
Writes