We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530466c commit d2164d6Copy full SHA for d2164d6
1 file changed
readme.md
@@ -28,7 +28,12 @@ import (
28
29
var json_data interface{}
30
json.Unmarshal([]byte(data), &json_data)
31
+
32
res, err := jsonpath.JsonPathLookup(json_data, "$.expensive")
33
34
+//or reuse lookup pattern
35
+pat, _ := jsonpath.Compile(`$.store.book[?(@.price < $.expensive)].price`)
36
+res, err := pat.Lookup(json_data)
37
```
38
39
Operators
0 commit comments