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
object JsonSyntax { | |
implicit class JsonWriterOps[A](value: A) { | |
def toJson(implicit w: JsonWriter[A]): Json = | |
w.write(value) | |
} | |
} |