Updated README.
This commit is contained in:
parent
7744206872
commit
df9e4fc6c2
|
@ -2,6 +2,13 @@
|
|||
Very simple tool to search by string or number value and get the JSON key from it.
|
||||
|
||||
## Usage
|
||||
`jsonsearch [-all] [-type=(string|number)] <match> [<file>|-]`
|
||||
|
||||
- `-all` will search for all occurrences
|
||||
- `-type` will set the type to search for; defaults to string
|
||||
- `<match>` is the value to match against
|
||||
- `<file>|-` is either a relative file path or a dash, indicating to read from STDIN.
|
||||
|
||||
```sh
|
||||
# Search for the first occurrence of 'foo Bar'.
|
||||
jsonsearch "foo Bar" myfile.json
|
||||
|
|
Loading…
Reference in New Issue