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 7e6e264 commit f60ed9aCopy full SHA for f60ed9a
README.md
@@ -5,6 +5,19 @@ This repository contains an implementation of [JSONPath](http://goessner.net/art
5
6
## API
7
8
+
9
+### `match` shortcut function
10
11
+The `jsonpath2.match` function is a shortcut to match a given JSON data
12
+structure against a JSONPath string
13
14
+```python
15
+>>> import jsonpath2
16
+>>> doc = {'hello': 'Hello, world!'}
17
+>>> [x.current_value for x in jsonpath2.match('$.hello', doc)]
18
+['Hello, world!']
19
+```
20
21
### `Path` class
22
23
The `jsonpath2.path.Path` class represents a JSONPath.
0 commit comments