Last active
November 10, 2015 05:50
-
-
Save todokr/fd0f1745ff780c11e08a to your computer and use it in GitHub Desktop.
Play2/Scala JSON Serialize for Char type
This file contains 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
class HogeController { | |
implicit var charFormat = new Writes[Char] { | |
def writes(c: Char): JsString = JsString(String.valueOf(c)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment