diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-05-02 21:55:14 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-05-02 21:55:14 +0100 |
| commit | 903955325445c5cd26a770f9562b62e5d8c028c5 (patch) | |
| tree | 9de1d04e4785dd28f2001b61d58f1f7241d8b573 /README.rst | |
| parent | 9f088d1bd19c8d96373f38aedd09e4cf5c9d62fb (diff) | |
Document input_values()
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
