Skip to content

Commit ddf4be4

Browse files
oakmaccburgmer
authored andcommitted
README updates: add Chris Oakman to contributors, highlight Clojure code in Markdown
1 parent 0288650 commit ddf4be4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,24 @@ operations like length should be added.
5050
Accepts standard Clojure data structures: maps and sequences. Assumes
5151
that maps contains keywords for the child objects.
5252

53-
(require 'json-path)
53+
```clj
54+
(require 'json-path)
5455

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!"}
5758

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+
```
6163

6264
## Contributors
6365

6466
* [Giles Alexander](https://github.com/gga)
6567
* [Matthew Gertner](https://github.com/matthewgertner)
6668
* [Christoph Burgmer](https://github.com/cburgmer)
6769
* [Trevor Hartman](https://github.com/devth)
70+
* [Chris Oakman](https://github.com/oakmac)
6871

6972
## License
7073

0 commit comments

Comments
 (0)