-
-
Save pjrt/76bf3a888c0651cbf83f76dad5d0b430 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] = | |
JsonParser.deriveInstance[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