OptionHandlers

play.api.libs.json.OptionHandlers
See theOptionHandlers companion object

Configure how options should be handled

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Default.type
object WritesNull.type

Members list

Value members

Abstract methods

def readHandler[T](jsPath: JsPath)(implicit r: Reads[T]): Reads[Option[T]]
def writeHandler[T](jsPath: JsPath)(implicit writes: Writes[T]): OWrites[Option[T]]

Concrete methods

final def formatHandler[T](jsPath: JsPath)(implicit format: Format[T]): OFormat[Option[T]]
final def formatHandlerWithDefault[T](jsPath: JsPath, defaultValue: => Option[T])(implicit format: Format[T]): OFormat[Option[T]]
def readHandlerWithDefault[T](jsPath: JsPath, defaultValue: => Option[T])(implicit r: Reads[T]): Reads[Option[T]]