An open API service indexing awesome lists of open source software.

https://github.com/webdevred/json-search


https://github.com/webdevred/json-search

Last synced: 8 days ago
JSON representation

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