You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a case class with an optional value set to None:
case class C(a: Int, z: Option[Int])
val c = C(1, None)
...is it possible to customise derive to preserve the None values in the JSON?
E.g., to get:
{ "a": 1, "z": null }
This is possibly related to the Play note on Customize the macro to output null (hmm, if that link doesn't take you to the right section, scroll to the bottom of the page).
The text was updated successfully, but these errors were encountered:
Hello 👋
For a case class with an optional value set to
None
:...is it possible to customise derive to preserve the
None
values in the JSON?E.g., to get:
This is possibly related to the Play note on Customize the macro to output null (hmm, if that link doesn't take you to the right section, scroll to the bottom of the page).
The text was updated successfully, but these errors were encountered: