From 903955325445c5cd26a770f9562b62e5d8c028c5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 2 May 2023 21:55:14 +0100 Subject: Document input_values() --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3