News for hackers. Stuff that matters.
Re:Java's records, Lombok's data, and Kotlin's data classes by winrid on Saturday May 08, 2021 @03:14AM (#27084715)
The easiest way is with GSON:

https://mkyong.com/java/how-do-convert-java-object-to-from-j...

You would just have to have annotations on the enum names to get the lowercase values in your example json.

There are no comments on this comment yet.