Created
July 12, 2013 03:12
-
-
Save nkpart/5981125 to your computer and use it in GitHub Desktop.
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
object ArgonautPlay { | |
implicit val writeableJson: Writeable[Json] = { | |
// TODO this should explicitly be a UTF-8 encoder | |
val stringWriter = implicitly[Writeable[String]].transform | |
Writeable((a: Json) => stringWriter(a.spaces2), Some("application/json; charset=utf-8")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment