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.

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"
}

Project details


Download files

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

Source Distribution

jsonp-1.0.4.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

jsonp-1.0.4-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page