OWrites

play.api.libs.json.OWrites
See theOWrites companion object
trait OWrites[A] extends Writes[A]

Attributes

Companion
object
Graph
Supertypes
trait Writes[A]
class Object
trait Matchable
class Any
Known subtypes
trait OFormat[A]

Members list

Value members

Abstract methods

def writes(o: A): JsObject

Converts the A value into a JsValue.

Converts the A value into a JsValue.

Attributes

Concrete methods

override def contramap[B](f: B => A): OWrites[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

Definition Classes
override def narrow[B <: A]: OWrites[B]

Narrows to any B super-type of A.

Narrows to any B super-type of A.

Attributes

Definition Classes
def transform(transformer: JsObject => JsObject): OWrites[A]

Transforms the resulting JsObject using a transformer function.

Transforms the resulting JsObject using a transformer function.

Attributes

def transform(transformer: OWrites[JsObject]): OWrites[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]

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]

Transforms the resulting JsValue using transformer function.

Transforms the resulting JsValue using transformer function.

Attributes

Inherited from:
Writes