File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -50,21 +50,24 @@ operations like length should be added.
50
50
Accepts standard Clojure data structures: maps and sequences. Assumes
51
51
that maps contains keywords for the child objects.
52
52
53
- (require 'json-path)
53
+ ``` clj
54
+ (require 'json-path)
54
55
55
- (json-path/at-path "$.foo" {:foo {:bar "Hello, world!"}})
56
- ; => {:bar "Hello, world!"}
56
+ (json-path/at-path " $.foo" {:foo {:bar " Hello, world!" }})
57
+ ; => {:bar "Hello, world!"}
57
58
58
- (->> (json-path/query "$..bar" {:foo {:bar "Hello"}})
59
- (map :path))
60
- ; => ([:foo :bar])
59
+ (->> (json-path/query " $..bar" {:foo {:bar " Hello" }})
60
+ (map :path ))
61
+ ; => ([:foo :bar])
62
+ ```
61
63
62
64
## Contributors
63
65
64
66
* [ Giles Alexander] ( https://github.com/gga )
65
67
* [ Matthew Gertner] ( https://github.com/matthewgertner )
66
68
* [ Christoph Burgmer] ( https://github.com/cburgmer )
67
69
* [ Trevor Hartman] ( https://github.com/devth )
70
+ * [ Chris Oakman] ( https://github.com/oakmac )
68
71
69
72
## License
70
73
You can’t perform that action at this time.
0 commit comments