Liking cljdoc? Tell your friends :D

jsam.core


->configclj

(->config opt)
source

error!cljmacro

(error! message)
(error! template & args)
source

IJSONcljprotocol

-encodeclj

(-encode this writer)
source

readclj

(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.
sourceraw docstring

read-multiclj

(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.
sourceraw docstring

read-stringclj

(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.
sourceraw docstring

sup-arr-cljclj

A supplier that reads a JSON array into a persistent Clojure vector

A supplier that reads a JSON array into
a persistent Clojure vector
sourceraw docstring

sup-arr-javaclj

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.
sourceraw docstring

sup-obj-cljclj

A supplier that reads a JSON object into a persistent Clojure map.

A supplier that reads a JSON object into
a persistent Clojure map.
sourceraw docstring

sup-obj-javaclj

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.
sourceraw docstring

suppliercljmacro

(supplier & body)
source

writeclj

(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.
sourceraw docstring

write-multiclj

(write-multi dest coll)
(write-multi dest coll opt)
source

write-stringclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close