We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d653b2 commit 4cea752Copy full SHA for 4cea752
README.rst
@@ -38,6 +38,14 @@ Then:
38
>>> [match.value for match in jsonpath_expr.find({'foo': [{'baz': 1}, {'baz': 2}]})]
39
[1, 2]
40
41
+ # Update values
42
+ >>> jsonpath_expr.update({'foo': [{'baz': 1}, {'baz': 2}]}, 3)
43
+ {'foo': [{'baz': 3}, {'baz': 3}]}
44
+
45
+ # Delete values
46
+ >>> jsonpath_expr.delete({'foo': [{'baz': 1}, {'baz': 2}]})
47
+ {'foo': []}
48
49
# Matches remember where they came from
50
>>> [str(match.full_path) for match in jsonpath_expr.find({'foo': [{'baz': 1}, {'baz': 2}]})]
51
['foo.[0].baz', 'foo.[1].baz']
0 commit comments