Given I have the following declaration:
sealed trait Color
case object DColor extends Color
case object CColor extends Color
case object VColor extends Color
And then I use them In a case class like so:
case class CustomColor(c: Color)
CustomColor(VColor)
Now I want this to produce a JSON like so:
{c:"v_color"}