Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
object JsonSyntax {
implicit class JsonWriterOps[A](value: A) {
def toJson(implicit w: JsonWriter[A]): Json =
w.write(value)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment