summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-05-02 21:55:14 +0100
committerMichael Williamson <mike@zwobble.org>2023-05-02 21:55:14 +0100
commit903955325445c5cd26a770f9562b62e5d8c028c5 (patch)
tree9de1d04e4785dd28f2001b61d58f1f7241d8b573 /README.rst
parent9f088d1bd19c8d96373f38aedd09e4cf5c9d62fb (diff)
Document input_values()
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 0db748b..02261b9 100644
--- a/README.rst
+++ b/README.rst
@@ -88,6 +88,14 @@ Call ``.input_value()`` to supply a valid JSON value, such as the values returne
assert jq.compile(".").input_value(True).first() == True
assert jq.compile(".").input_value("hello").first() == "hello"
+Call ``.input_values()`` to supply multiple valid JSON values, such as the values returned from ``json.load``:
+
+.. code-block:: python
+
+ import jq
+
+ assert jq.compile(".+5").input_values([1, 2, 3]).all() == [6, 7, 8]
+
Call ``.input_text()`` to supply unparsed JSON text:
.. code-block:: python