NullOptions

besom.json.NullOptions
trait NullOptions extends ProductFormats

This trait supplies an alternative rendering mode for optional case class members. Normally optional members that are undefined (None) are not rendered at all. By mixing in this trait into your custom JsonProtocol you can enforce the rendering of undefined members as null. (Note that this only affect JSON writing, besom-json will always read missing optional members as well as null optional members as None.)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def writeNulls: Boolean

Attributes

Definition Classes

Inherited methods

inline def jsonFormatN[T <: Product]: RootJsonFormat[T]

Attributes

Inherited from:
ProductFormats

Attributes

Inherited from:
ProductFormats