Skip to content

Instantly share code, notes, and snippets.

@nkpart
Created July 12, 2013 03:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkpart/5981125 to your computer and use it in GitHub Desktop.
Save nkpart/5981125 to your computer and use it in GitHub Desktop.
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