Skip to content

Instantly share code, notes, and snippets.

@eicnix
eicnix / FailingExample.scala
Last active August 29, 2015 14:24
Parsing nullable types with argonaut
import argonaut._
import Argonaut._
object Main extends App{
val json = "{ \"name\": \"Peter\", \"score\": null}"
case class Player(name: String, score: String)
implicit def PlayerCodecJson: CodecJson[Player] =