-
-
Save pjrt/0af73583d3a5d02adfcc1b4d58bddfca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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