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.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

jsonp-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file jsonp-1.0.1.tar.gz.

File metadata

  • Download URL: jsonp-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.18.4

File hashes

Hashes for jsonp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ee984f2ebeb36554db606749efce68ec14a6b6e21a474e8a6a4b12486814180b
MD5 60b4c210ac1964a58ffcd1f0eb92ec77
BLAKE2b-256 eff2bb06736edd61f5534a02db85f4f00d5d629137b1f0b34d966fd636c58c91

See more details on using hashes here.

File details

Details for the file jsonp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: jsonp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.18.4

File hashes

Hashes for jsonp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c769a55a8912863e04dd9b0e12667e8a938c68871b72af024cf64b68292070
MD5 e7301d511a4becb0cf50ad5a61370f4c
BLAKE2b-256 31ebff55c4c8352d3cbc1571d29d8d0b252e80d5c299af77445bc929e8b0f393

See more details on using hashes here.

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