Skip to content

Commit

Permalink
updated jsonl doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Oct 17, 2023
1 parent 7a70648 commit 58f12cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/readme/json-lines.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ To convert to/from a single JSON Line string, use *jsonl/write-str* and *jsonl/r
```clojure
(do
(load-module :jsonl)

;; write two JSON lines (passing as list with two values)
(println (jsonl/write-str [{"a" 10 :b 20} {"a" 11 "b" 21}])))

;; outputs
Expand All @@ -21,6 +23,8 @@ To convert to/from a single JSON Line string, use *jsonl/write-str* and *jsonl/r
```clojure
(do
(load-module :jsonl)

;; read three JSON lines (returned as list with three values)
(println (jsonl/read-str """
{"a":10,"b":20}
{"a":11,"b":21}
Expand Down

0 comments on commit 58f12cc

Please sign in to comment.