(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close