t

play.api.libs.json

PathWrites

trait PathWrites extends AnyRef

Source
JsConstraints.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathWrites
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def at[A](path: JsPath)(implicit wrs: Writes[A]): OWrites[A]
  2. def jsPick(path: JsPath): [JsValue]
  3. def jsPickBranch(path: JsPath): [JsValue]
  4. def jsPickBranchUpdate(path: JsPath, wrs: [JsValue]): [JsValue]
  5. 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]

  6. def pure[A](path: JsPath, fixed: => A)(implicit wrs: Writes[A]): [JsValue]