Conversion from CVS to EDN.
Conversion from CVS to EDN.
Defaults for options used in conversion (essentially, :separator
is ,
,
much as you'd expect.
Defaults for options used in conversion (essentially, `:separator` is `,`, much as you'd expect.
(csv->edn from)
(csv->edn from to)
(csv->edn from to sep)
Read a CSV stream from the reader or filename from
, and write corresponding
EDN to the reader or filname to
, using the separator character sep
. Assume
column headers are in row 1. If from
is nil
or not supplied, do not write.
It sep
is not supplied, take the :separator
value from *options*
. Returns
a (possibly-lazy) sequence of maps.
Read a CSV stream from the reader or filename `from`, and write corresponding EDN to the reader or filname `to`, using the separator character `sep`. Assume column headers are in row 1. If `from` is `nil` or not supplied, do not write. It `sep` is not supplied, take the `:separator` value from `*options*`. Returns a (possibly-lazy) sequence of maps.
(csv->json from)
(csv->json from to)
(csv->json from to sep)
Read a CSV stream from the reader or filename from
, and write corresponding
JSON to the reader or filname to
, using the separator character sep
. Assume
column headers are in row 1. If from
is nil
or not supplied, do not write.
It sep
is not supplied, take the :separator
value from *options*
. Returns
a (possibly-lazy) sequence of maps.
Read a CSV stream from the reader or filename `from`, and write corresponding JSON to the reader or filname `to`, using the separator character `sep`. Assume column headers are in row 1. If `from` is `nil` or not supplied, do not write. It `sep` is not supplied, take the `:separator` value from `*options*`. Returns a (possibly-lazy) sequence of maps.
(maybe-read s)
If a string represents an integer or real, we'd really like to have that integer or real in our data rather than a string representation of it.
If a string represents an integer or real, we'd really like to have that integer or real in our data rather than a string representation of it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close