Default parameter support for JSON extraction (Scala 2.8) #534

jonifreeman opened this Issue May 24, 2010 · 3 comments


None yet
4 participants

jonifreeman commented May 24, 2010

case class Bike(make: String = "Trek", price: Int)
parse("""{"price": 350}""" ).extract[Bike]

should give: Bike("Trek", 350)

jonifreeman was assigned Mar 1, 2012

adam00s commented Nov 22, 2012

It would be very nice to have this feature.


Shadowfiend commented May 10, 2014

While this is theoretically doable, it would be very hacky (see ) unless/until scala.reflect becomes a little more stable and adds support for default parameters (see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment