Metadata-Version: 2.1
Name: json-grep
Version: 1.1.2
Summary: Filtering JSON dict keys from STDOUT
Home-page: https://gitlab.com/alda78/json-grep
Author: Ales Adamek
Author-email: alda78@seznam.cz
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# json-grep

## Description
Simple tool for filtering JSON dict keys from STDOUT

## Usage
```
json-grep --help
usage: json-grep [-h] [-m] [-v] [-i] filter_keys [filter_keys ...]

JSON GREP is utility for filtering selected keys from json string piped from STDOUT

positional arguments:
  filter_keys           List of keys which you want to filter from json dict. You can also specify value of item which you want to pass only by operator = or ~. '~' means that value is in item on any string position. If key is in deeper level of tree structure
                        use '.' separator to specify how deep is key in dict tree structure.

optional arguments:
  -h, --help            show this help message and exit
  -m, --multiline-output
                        Use multiline output for filtered result
  -v, --values_only     Show only values without keys description
  -i, --ignore-errors   Ignore errors caused by json decode
```

## Installation
```bash
wget https://gitlab.com/alda78/json-grep/-/archive/master/json-grep-master.tar && \
tar -xf json-grep-master.tar && \
cd json-grep-master/ && \
sudo python3 setup.py install && \
cd ../ &&  \
sudo rm -rf json-grep-master
```

or simply
```bash
pip3 install json-grep
```

