Skip to content

Commit

Permalink
README updates: add Chris Oakman to contributors, highlight Clojure c…
Browse files Browse the repository at this point in the history
…ode in Markdown
  • Loading branch information
oakmac authored and cburgmer committed Apr 27, 2022
1 parent 0288650 commit ddf4be4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,24 @@ operations like length should be added.
Accepts standard Clojure data structures: maps and sequences. Assumes
that maps contains keywords for the child objects.

(require 'json-path)
```clj
(require 'json-path)

(json-path/at-path "$.foo" {:foo {:bar "Hello, world!"}})
; => {:bar "Hello, world!"}
(json-path/at-path "$.foo" {:foo {:bar "Hello, world!"}})
; => {:bar "Hello, world!"}

(->> (json-path/query "$..bar" {:foo {:bar "Hello"}})
(map :path))
; => ([:foo :bar])
(->> (json-path/query "$..bar" {:foo {:bar "Hello"}})
(map :path))
; => ([:foo :bar])
```

## Contributors

* [Giles Alexander](https://github.com/gga)
* [Matthew Gertner](https://github.com/matthewgertner)
* [Christoph Burgmer](https://github.com/cburgmer)
* [Trevor Hartman](https://github.com/devth)
* [Chris Oakman](https://github.com/oakmac)

## License

Expand Down

0 comments on commit ddf4be4

Please sign in to comment.