Adds path-based field value replacement to JValue
Updated 1 year, 8 months ago
| Kris Nuttycombe | Reviewers | ||
| master | |||
| #510 | dpp, marius, charles, joni, atsuhiko, jorge, naftoli, kris, indrajit, alexb, dlouwers, mstarzyk, rmellgren, jhoffman, probinett, jmadsen, mhartmann, jstrachan, jgoday | ||
| None | LiftWeb-archive | ||
Adds the ability to make the following sort of call:
JObject(List(JField("foo", JObject(List(JField("bar", JInt(1))))))).replace("foo" :: "bar" :: Nil, JString("baz"))
// returns JObject(List(JField("foo", JObject(List(JField("bar", JString("baz")))))))
Scalacheck tests included
Posted 1 year, 9 months ago (May 3rd, 2010, 10:05 a.m.)
Seems like a feature/enhancement and we're in code slush?
