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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page