Liking cljdoc? Tell your friends :D

bsless.jsonista.streams


read-valuesclj

(read-values object)
(read-values object mapper)

Decodes a sequence of values from a JSON as an iterator from anything that satisfies [[ReadValue]] protocol. By default, File, URL, String, Reader and InputStream are supported. The returned object is an Iterable, Iterator and IReduceInit. It can be reduced on via [[reduce]] and turned into a lazy sequence via [[iterator-seq]]. To configure, pass in an ObjectMapper created with [[object-mapper]], see [[object-mapper]] docstring for the available options.

Decodes a sequence of values from a JSON as an iterator
from anything that satisfies [[ReadValue]] protocol.
By default, File, URL, String, Reader and InputStream are supported.
The returned object is an Iterable, Iterator and IReduceInit.
It can be reduced on via [[reduce]] and turned into a lazy sequence
via [[iterator-seq]].
To configure, pass in an ObjectMapper created with [[object-mapper]],
see [[object-mapper]] docstring for the available options.
sourceraw docstring

ReadValuescljprotocol

-read-valuesclj

(-read-values this mapper)
source

write-valuesclj

(write-values to object)
(write-values to object mapper)
(write-values to object mapper options)

Encode values as JSON and write using the provided [[WriteValue]] instance. By default, File, OutputStream, DataOutput and Writer are supported. By default, values can be an array or an Iterable. To configure, pass in an ObjectMapper created with [[object-mapper]], see [[object-mapper]] docstring for the available options. Additional options: :write-values-as-array - default true, write the sequence as array :root-value-separator - default nil, string separator to interpose between root values.

Encode values as JSON and write using the provided [[WriteValue]] instance.
By default, File, OutputStream, DataOutput and Writer are supported.
By default, values can be an array or an Iterable.
To configure, pass in an ObjectMapper created with [[object-mapper]],
see [[object-mapper]] docstring for the available options.
Additional options:
`:write-values-as-array` - default true, write the sequence as array
`:root-value-separator` - default nil, string separator to interpose between root values.
sourceraw docstring

WriteAllcljprotocol

-write-allclj

(-write-all this writer)
source

WriteValuescljprotocol

-write-valuesclj

(-write-values this values mapper options)
source

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

× close