Skip to main content

Simple pipeline json parser

Project description

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.


pip install jsonp


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"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jsonp, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size jsonp-1.0.4-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jsonp-1.0.4.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page