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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
jsonp-1.0.4-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file jsonp-1.0.4.tar.gz.
File metadata
- Download URL: jsonp-1.0.4.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1a9158d930d9999c12c79ccda433688d626acc53fe1817c7902dba5d141dfb8
|
|
| MD5 |
26f88c1554dd5a759f439cf7305fafd9
|
|
| BLAKE2b-256 |
0754abdc15acca617377031a284fcb40abec0fee4e1ef3411038c8d7cec8c916
|
File details
Details for the file jsonp-1.0.4-py3-none-any.whl.
File metadata
- Download URL: jsonp-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10e23b0f109fda38f2a0d40ec3f753757dbffcdeb3307239385d9c6a58585e2e
|
|
| MD5 |
ecf3f3c381d66dc06649b24d62142eac
|
|
| BLAKE2b-256 |
ce55fafd1eca5ae3600da206139b6e524ef7e45253b132fbb55f9db3643513f8
|