trait PathWrites extends AnyRef
- Source
- JsConstraints.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- PathWrites
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def at[A](path: JsPath)(implicit wrs: Writes[A]): OWrites[A]
- def jsPick(path: JsPath): [JsValue]
- def jsPickBranch(path: JsPath): [JsValue]
- def jsPickBranchUpdate(path: JsPath, wrs: [JsValue]): [JsValue]
- def nullable[A](path: JsPath)(implicit wrs: Writes[A]): OWrites[Option[A]]
writes a optional field in given JsPath : if None, doesn't write field at all.
writes a optional field in given JsPath : if None, doesn't write field at all. Please note we do not write "null" but simply omit the field when None If you want to write a "null", use ConstraintWrites.optionWithNull[A]
- def pure[A](path: JsPath, fixed: => A)(implicit wrs: Writes[A]): [JsValue]