Add support to extract primitve values from JSON
For example:
(json \ "name").extract[String] mustEqual "joe"
((json \ "children")(0) \ "birthdate").extract[Date] mustEqual date("2004-09-04T18:06:22Z")
JInt(1).extract[Int] mustEqual 1
JInt(1).extract[String] mustEqual "1"
JField("foo", JInt(1)).extract[Int] mustEqual 1
Leave a comment
on 2010-02-20 17:21 *
By joni.freeman
Description changed from For example:
(json \ "... to For example:
...