https://github.com/webdevred/json-search
https://github.com/webdevred/json-search
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/webdevred/json-search
- Owner: webdevred
- Created: 2024-05-10T15:00:46.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-17T21:21:52.000Z (11 months ago)
- Last Synced: 2026-05-29T09:34:31.787Z (25 days ago)
- Language: Haskell
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* json-search
Welcome to this project!
This is a tool that takes a JSON strucure and searches through it and gives back the matching object.
Here is the output when using the -a flag:
#+begin_src bash
cat example.json | json-search-exe -a '[2].preferences.likes'
#+end_src
#+begin_src js
["sleeping", "eating"]
#+end_src
Here is the output when using the -s flag:
#+begin_src bash
cat example.json | json-search-exe -s 'name'
#+end_src
#+begin_src js
[{"name":"Whiskers"},{"name":"Mittens"},{"name":"Felix"}]
#+end_src