Json Play! helper functions for Scala Enumerations
A helper object with functions to create Play! Reads, Writes and Formats for Scala Enumerations.
Use it like this:
object Colors extends Enumeration { ... }
val fmt = EnumJson.enumFormat(Colors)
And the source code:
Written by Jordi Pradel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Scala
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#