2 ms·
The easiest way is with GSON: https://mkyong.com/java/how-do-convert-java-object-to-from-json-format-gson-api/ https://mkyong.com/java/how-do-convert-java-obje
by winrid 6y ago
The easiest way is with GSON:
https://mkyong.com/java/how-do-convert-java-object-to-from-json-format-gson-api/ 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.