summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
Diffstat (limited to 'txr.1')
-rw-r--r--txr.122
1 files changed, 15 insertions, 7 deletions
diff --git a/txr.1 b/txr.1
index a0d9773d..9de10070 100644
--- a/txr.1
+++ b/txr.1
@@ -72213,24 +72213,32 @@ function returns
.coNP Function @ get-jsons
.synb
-.mets (gut-jsons <> [ stream ])
+.mets (get-jsons <> [ source ])
.syne
.desc
The
.meta get-jsons
function reads zero or more JSON representations from
-.meta stream
+.meta source
until an end-of-stream or error condition is encountered.
+If
+.meta source
+is a character string, then the input takes place from a stream
+created from the character string using
+.codn make-string-byte-input-stream .
+Otherwise, if
+.meta source
+is specified, it must be an input stream supporting byte input;
+input takes place from that stream. If the
+.meta source
+argument is omitted, it defaults to
+.codn *stdin* .
+
The objects are read as if by calls to
.code get-json
and accumulated into a list.
-If the
-.meta stream
-argument is omitted, it defaults to
-.codn *stdin* .
-
If the end-of-stream condition is read, then the list of accumulated objects is
returned. If an error occurs, then an exception is thrown and the list of
accumulated objects is not available.