Sample on how to serialize Scala enums into JSON and back