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.0.tar.gz
(1.7 kB
view details)
Built Distribution
jsonp-1.0.0-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file jsonp-1.0.0.tar.gz
.
File metadata
- Download URL: jsonp-1.0.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa439862dae7279e65b5b9d31e010c34ba74bcf5b8019973938b938e5868bfd |
|
MD5 | b841a8b8f5559b320dffd4ec8ed93ecc |
|
BLAKE2b-256 | 6888b4165be353bdcca85d7eebe692601991f5d5d19c78fdef38731cc5e78c83 |
File details
Details for the file jsonp-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: jsonp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 118ca2546edf779731b7255a773e495a8b11df998989106f8eb8c258791dc4e6 |
|
MD5 | 758d08f3201b2dd10518513f1d9be425 |
|
BLAKE2b-256 | 40f0b5a3a7ce19d5432aa466ddf1a5071c940291345438749ada6aaa6aad3f0e |