Improve case class constructor search when extracting values from JSON
Should support for instance these cases:
case class Bike(make: String, price: Int) {
def this(price: Int) = this("Trek", price)
}
parse("""{"price": 350}""" ).extract[Bike]
case class Bike(make: String, price: Int) {
def this(price: Int) = this("Trek", price)
}
parse("""{"price": 350}""" ).extract[Bike]
Leave a comment
on 2010-05-23 08:55 *
By joni.freeman
Description changed from Should support for instance... to Should support for instance...