Metadata-Version: 2.1
Name: jsonp
Version: 1.0.1
Summary: Simple pipeline json parser
Home-page: https://github.com/paul-nameless/j
License: UNKNOWN
Author: Paul Nameless
Author-email: paul.nameless@icloud.com
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: pygments

# Simple pipeline json parser

It is as jq but better because you can use python syntax and you do not need to look in documentation every time.

## Install

```
pip install jsonp
```

## Usage

Pretty print
```
echo '{"userId":1,"id":1,"title":"delectus aut autem","completed":false}' | j
{
    "completed": false,
    "id": 1,
    "title": "delectus aut autem",
    "userId": 1
}
```

Modify data as you want until returned data is correct json object
```
echo '{"userId":1,"id":1,"title":"delectus aut autem","completed":false}' | j '{str(v):k for k, v in it.items()}'
{
    "1": "id",
    "False": "completed",
    "delectus aut autem": "title"
}

```

