Product types are disambiguated by a {"key":"value",...}
.
Sometimes the wire format needs to match an existing format and
JsNull
behaviour needs to be customised.
Product types are disambiguated by an extra JSON map layer containing a single key which is the name of the type of product contained in the value.
All values serialising to JsNull
will be included in the wire format.
Same as AlwaysJsNull when serialising, with missing values treated as optional upon deserialisation.
Option values of None
are omitted, but Some
values of JsNull
are retained.
No values serialising to JsNull
will be included in the wire format.
Use the case class default value provided for the field when available.