yo3kkq
Last Updated: February 25, 2016
·
1.401K
· agile_jordi

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:

https://gist.github.com/agile-jordi/6809100