Open karlkfi opened 3 years ago
Thanks a lot for your comment, it's really nice to hear.
About your suggestions:
$..leaf.*.new_field
. But if I'd add some limitations, like: "only direct names (or 0
to add the first item in the array) after the leaf element", then it would be enough to generate a new subtree. Like $..leaf[0].new.element["0"]
So, I suppose, I can implement it with some limitations. But not sure about the due date.I implemented methods Set
and SetNode
int the v0.6.0
.
I prefer to implement the second part of the request in the v1.0.0
of the library, as soon as it causes backward-incompatible changes. The next I'm going to develop will be exactly v1.0.0
.
This is an interesitng project! It seems like it's the only jsonpath library that supports mutation and not just retrieval. That said, the mutation API/behavior could be improved.
I'd like to be able to mutate json using jsonpath. This leads to two asks: