object JsValueWrites extends Writes[JsValue]
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsValueWrites
- Writes
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def contramap[B](f: (B) => JsValue): Writes[B]
Returns a new instance that first converts a
B
value to aA
one, before converting thisA
value into a JsValue. - def narrow[B <: JsValue]: Writes[B]
Narrows to any
B
super-type ofA
.Narrows to any
B
super-type ofA
.- Definition Classes
- Writes
- def transform(transformer: [JsValue]): [JsValue]
Transforms the resulting JsValue using a
Writes[JsValue]
. - def transform(transformer: () => JsValue): [JsValue]
Transforms the resulting JsValue using transformer function.
- def writes(o: JsValue): JsValue
Converts the
A
value into a JsValue.
(Since version 2.8.0) Use
jsValueWrites