(read src)
(read src opt)
Read data from a source that can be a file, a file path,
an input stream, a writer, etc. The source gets transformed
to the Reader
instance. The reader gets closed afterwards.
Accepts an optional map of settings.
Read data from a source that can be a file, a file path, an input stream, a writer, etc. The source gets transformed to the `Reader` instance. The reader gets closed afterwards. Accepts an optional map of settings.
(read-multi src)
(read-multi src opt)
Get a lazy sequence of JSON parsed items written one by one.
Should be used under the with-open
macro.
Get a lazy sequence of JSON parsed items written one by one. Should be used under the `with-open` macro.
(read-string string)
(read-string string opt)
Read data from a string. Works a bit faster than read
as
the entire data sits in memory and no IO is performed.
Read data from a string. Works a bit faster than `read` as the entire data sits in memory and no IO is performed.
A supplier that reads a JSON array into a persistent Clojure vector
A supplier that reads a JSON array into a persistent Clojure vector
A supplier that reads a JSON array into a mutable Java ArrayList instance.
A supplier that reads a JSON array into a mutable Java ArrayList instance.
A supplier that reads a JSON object into a persistent Clojure map.
A supplier that reads a JSON object into a persistent Clojure map.
A supplier that reads a JSON object into a mutable Java HashMap instance.
A supplier that reads a JSON object into a mutable Java HashMap instance.
(write dest data)
(write dest data opt)
Write data into a destination that can be a file path, a file, an output stream, a writer, etc. The data is arbitrary Clojure or Java value. Accepts an optional map of preferences.
Write data into a destination that can be a file path, a file, an output stream, a writer, etc. The data is arbitrary Clojure or Java value. Accepts an optional map of preferences.
(write-string data)
(write-string data opt)
Like write
but the output is a StringWriter
which gets
turned into a string afterwards.
Like `write` but the output is a `StringWriter` which gets turned into a string afterwards.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close