WritesNull

play.api.libs.json.OptionHandlers.WritesNull
object WritesNull extends OptionHandlers

Option Handlers to write JsNull when handling None Uses readNullable and writeOptionWithNull

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
WritesNull.type

Members list

Value members

Concrete methods

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

Inherited methods

final def formatHandler[T](jsPath: JsPath)(implicit format: Format[T]): OFormat[Option[T]]

Attributes

Inherited from:
OptionHandlers
final def formatHandlerWithDefault[T](jsPath: JsPath, defaultValue: => Option[T])(implicit format: Format[T]): OFormat[Option[T]]

Attributes

Inherited from:
OptionHandlers
def readHandlerWithDefault[T](jsPath: JsPath, defaultValue: => Option[T])(implicit r: Reads[T]): Reads[Option[T]]

Attributes

Inherited from:
OptionHandlers