summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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