diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-06-28 15:33:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-06-28 15:33:37 +0100 |
| commit | bf0f12612e0d867801ef6ba34b78d6f1c14bbf05 (patch) | |
| tree | 19e3d8a61767161343fc76d78a310a4816bc0459 | |
| parent | c15d112e79f5ea5dc81cce720589c6073be1ce41 (diff) | |
Update example in README.md
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9,7 +9,7 @@ This project contains Python bindings for [jq](http://stedolan.github.io/jq/). ```python from jq import jq -assert [2, 3, 4] == jq("[.[]+1]").transform_json([1, 2, 3]).json() -assert "[2,3,4]" == str(jq("[.[]+1]").transform_json([1, 2, 3])) -assert "[2,3,4]" == str(jq("[.[]+1]").transform_string("[1, 2, 3]")) +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)) ``` |
