trait Writes[A] extends AnyRef

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

Self Type
Writes[A]
Annotations
@implicitNotFound()
Source
Writes.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Writes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def writes(o: A): JsValue

    Converts the A value into a JsValue.

Concrete Value Members

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

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

    Narrows to any B super-type of A.

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

    Transforms the resulting JsValue using a Writes[JsValue].

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

    Transforms the resulting JsValue using transformer function.