summaryrefslogtreecommitdiff
path: root/README.md
blob: 58d827e86b97c4ec3ef24cb6ad9daa0ea6963d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# jq.py: a lightweight and flexible JSON processor

Warning: the API is not stable.

This project contains Python bindings for [jq](http://stedolan.github.io/jq/).

## Examples

```python
from jq import jq

assert [2, 3, 4] == jq("[.[]+1]").transform([1, 2, 3]).json()
assert "[2,3,4]" == str(jq("[.[]+1]").transform([1, 2, 3]))
assert "[2,3,4]" == str(jq("[.[]+1]").transform("[1, 2, 3]", raw=True))
```