summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index e2b5e21..573d1e8 100644
--- a/README.rst
+++ b/README.rst
@@ -109,3 +109,10 @@ Call ``iter()`` to get all of the output elements as an iterator:
assert next(iterator, None) == 3
assert next(iterator, None) == 4
assert next(iterator, None) == None
+
+The original program string is available on a compiled program as the ``program_string`` attribute:
+
+.. code-block:: python
+
+ program = jq.compile(".")
+ assert program.program_string == "."