Skip to content

Instantly share code, notes, and snippets.

@dant3
Created November 12, 2013 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dant3/7436717 to your computer and use it in GitHub Desktop.
Save dant3/7436717 to your computer and use it in GitHub Desktop.
Json.scala
def json(foo:String, bar:String) =
f"""{
| "commands" : [{
| "type" : "set_user_data",
| "user_data" : {
| "foo" : $foo%s,
| "bar" : $bar%s
| }
| }]
| }
""".stripMargin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment