This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tomergabel.examples | |
import net.liftweb.json._ | |
import net.liftweb.json.JsonDSL._ | |
/** | |
* A chained object which provides JSON serialization/deserialization facilities for multiple enumerations. | |
* Intended as a workaround for the following issue: https://github.com/lift/framework/issues/1080 | |
* | |
* To use simply add to your formats: `implicit val formats = DefaultFormats + new ChainedEnumSerializer( enum1, enum2 )` |