Closed shankarshastri closed 6 years ago
It is on purpose not a case class to show how to deal with not-case-class es
As it states just above there: Of course you can also supply (de)serialization logic for types that aren't case classes.
Thanks for the PR but the change is not an improvement, sorry
@ktoso , But then this should be val json = Color("CadetBlue", 95, 158, 160).toJson => val json = new Color("CadetBlue", 95, 158, 160).toJson ?
Ah yes :) Please change that line instead :) thanks!
Done @ktoso. Thanks 😄
Thanks!
Correct Example In Providing JsonFormats for other Types. @sirthias @jrudolph @ktoso