json-lenses
json-lenses copied to clipboard
A library to query and update JSON data in Scala.
I am faced with the fact that some operations are not currently supported in JsonPath. I have query like this: ``` $.[?(@.id=='1' && @.name == 'Pasha')] ``` I see that...
Hi , I have a scenario in my application , where i have to recusrively get all the data, and i tried to use the jsonPath `$.store.book[*].subBooks[*]..author` as mentioned in...
I'm trying to construct a JSON object using multple JsonPath expressions and values extracted from different sources. The following snippet reproduces the problem I'm facing. Namely, the set operation doesn't...
When trying to write a nested js: ``` javascript {"a" : { "b" : "c"}} ``` using a single lens ``` scala val ab = 'a / 'b JsObject.update(ab !...
If I have a field which may be null then it blows up on extraction: ``` scala val json = """{ "url": null }""".parseJson json.extract[String]("url".?) ``` This causes a runtime...
Attempting to extract a Seq[Seq[String]] from this document ``` scala val json = JsonParser("""{ "vmaz" : { "a" : { "b" : [ { "c" : { "d" : [...
I'm just getting started using this library and I'm running into a requirement to support both field renames and field mappers. One step further would be to be able to...
Could you please let me know if I might be missing a step here The extraction seems to be failing https://gist.github.com/conikeec/7354320
for both reading and writing