Skip to content

Instantly share code, notes, and snippets.

@Jacoby6000
Forked from zeryx/write.scala
Last active January 5, 2017 21:26
Show Gist options
  • Save Jacoby6000/e1d9d9f8fd0c4de42a10e540e0ae83c2 to your computer and use it in GitHub Desktop.
Save Jacoby6000/e1d9d9f8fd0c4de42a10e540e0ae83c2 to your computer and use it in GitHub Desktop.
//converts any serializable class into json using shapeless
def write[A](input: A)(implicit encoder: EncodeJson[A]): Json = {
val json = encoder(input)
json
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment