Skip to content

Instantly share code, notes, and snippets.

@ericwush
Created July 9, 2017 07:21
Show Gist options
  • Save ericwush/dcd53d8d6d0a2f52c91254cf51b29951 to your computer and use it in GitHub Desktop.
Save ericwush/dcd53d8d6d0a2f52c91254cf51b29951 to your computer and use it in GitHub Desktop.
import play.api.libs.json.{Json, Writes}
object JsonUtils {
def stringify[T](objekt: T)(implicit tjs: Writes[T]): String = {
Json.stringify(Json.toJson(objekt))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment