JSON processor with Python one-liner
Project description
jqp
jqp is a JSON processor with Python one-liner.
Requirement
Python 2.7, 3.3, 3.4, 3.5
Install
$ pip install jqp
Usage
jqp parses each line as a JSON object, and evaluates a given expression. A parsed JSON object is bounded a variable named j.
jqp cmd
- cmd:
An expression to evaluate.
Example
% echo '{"name": "Taro", "age": 10}' | jqp '[j["name"], j["age"]]' ["Taro", 10]
Lisence
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jqp-0.0.0.1.tar.gz
(3.0 kB
view hashes)