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
I don't care about parsing it back into an enum at this point. But, if I would, I'd still be able to recover the concrete case by the value attribute name: unit, faceAmt, or amtsdVal.
So, the main question is: how do I omit all those $type values when write-ing JSON?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My use case is rather weird. I must skip all the
$type
JSON values generated for Scala 3enum
case
-s.For example, given
instead of:
I'd like to have just:
I don't care about parsing it back into an enum at this point. But, if I would, I'd still be able to recover the concrete case by the value attribute name:
unit
,faceAmt
, oramtsdVal
.So, the main question is: how do I omit all those
$type
values whenwrite
-ing JSON?Beta Was this translation helpful? Give feedback.
All reactions