Skip to content

Instantly share code, notes, and snippets.

@pjrt
Last active February 19, 2021 19:59
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 pjrt/0af73583d3a5d02adfcc1b4d58bddfca to your computer and use it in GitHub Desktop.
Save pjrt/0af73583d3a5d02adfcc1b4d58bddfca to your computer and use it in GitHub Desktop.
final case class User(name: String)
object User {
implicit val jsonInstance: JsonParser[User] =
new JsonParser[User] { ... }
}
object Main {
JsonParser.parse[User](json)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment