Liking cljdoc? Tell your friends :D

cheshire.core

Main encoding and decoding namespace.

Main encoding and decoding namespace.
raw docstring

decodeclj

source

decode-smileclj

source

decode-streamclj

source

decode-strictclj

source

encodeclj

source

encode-smileclj

source

encode-streamclj

source

eofclj

Object used to determine end of lazy parsing attempt.

Object used to determine end of lazy parsing attempt.
sourceraw docstring

generate-smileclj

(generate-smile obj)
(generate-smile obj opt-map)

Returns a SMILE-encoded byte-array for the given Clojure object. Takes an optional date format string that Date objects will be encoded with.

The default date format (in UTC) is: yyyy-MM-dd'T'HH:mm:ss'Z'

Returns a SMILE-encoded byte-array for the given Clojure object.
Takes an optional date format string that Date objects will be encoded with.

The default date format (in UTC) is: yyyy-MM-dd'T'HH:mm:ss'Z'
sourceraw docstring

generate-streamclj

(generate-stream obj writer)
(generate-stream obj writer opt-map)

Returns a BufferedWriter for the given Clojure object with the. JSON-encoded data written to the writer. Takes an optional date format string that Date objects will be encoded with.

The default date format (in UTC) is: yyyy-MM-dd'T'HH:mm:ss'Z'

Returns a BufferedWriter for the given Clojure object with the.
JSON-encoded data written to the writer. Takes an optional date
format string that Date objects will be encoded with.

The default date format (in UTC) is: yyyy-MM-dd'T'HH:mm:ss'Z'
sourceraw docstring

generate-stringclj

(generate-string obj)
(generate-string obj opt-map)

Returns a JSON-encoding String for the given Clojure object. Takes an optional date format string that Date objects will be encoded with.

The default date format (in UTC) is: yyyy-MM-dd'T'HH:mm:ss'Z'

Returns a JSON-encoding String for the given Clojure object. Takes an
optional date format string that Date objects will be encoded with.

The default date format (in UTC) is: yyyy-MM-dd'T'HH:mm:ss'Z'
sourceraw docstring

parse-smileclj

(parse-smile bytes)
(parse-smile bytes key-fn)
(parse-smile bytes key-fn array-coerce-fn)

Returns the Clojure object corresponding to the given SMILE-encoded bytes. An optional key-fn argument can be either true (to coerce keys to keywords), false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values.

Returns the Clojure object corresponding to the given SMILE-encoded bytes.
An optional key-fn argument can be either true (to coerce keys to keywords),
false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field,
and returning the collection to be used for array values.
sourceraw docstring

parse-streamclj

(parse-stream rdr)
(parse-stream rdr key-fn)
(parse-stream rdr key-fn array-coerce-fn)

Returns the Clojure object corresponding to the given reader, reader must implement BufferedReader. An optional key-fn argument can be either true (to coerce keys to keywords),false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values. If laziness is needed, see parsed-seq.

Returns the Clojure object corresponding to the given reader, reader must
implement BufferedReader. An optional key-fn argument can be either true (to
coerce keys to keywords),false to leave them as strings, or a function to
provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field,
and returning the collection to be used for array values.
If laziness is needed, see parsed-seq.
sourceraw docstring

parse-stringclj

(parse-string string)
(parse-string string key-fn)
(parse-string string key-fn array-coerce-fn)

Returns the Clojure object corresponding to the given JSON-encoded string. An optional key-fn argument can be either true (to coerce keys to keywords), false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values.

Returns the Clojure object corresponding to the given JSON-encoded string.
An optional key-fn argument can be either true (to coerce keys to keywords),
false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field,
and returning the collection to be used for array values.
sourceraw docstring

parse-string-strictclj

(parse-string-strict string)
(parse-string-strict string key-fn)
(parse-string-strict string key-fn array-coerce-fn)

Returns the Clojure object corresponding to the given JSON-encoded string. An optional key-fn argument can be either true (to coerce keys to keywords), false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values.

Does not lazily parse top-level arrays.

Returns the Clojure object corresponding to the given JSON-encoded string.
An optional key-fn argument can be either true (to coerce keys to keywords),
false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field,
and returning the collection to be used for array values.

Does not lazily parse top-level arrays.
sourceraw docstring

parsed-seqclj

(parsed-seq reader)
(parsed-seq reader key-fn)
(parsed-seq reader key-fn array-coerce-fn)

Returns a lazy seq of Clojure objects corresponding to the JSON read from the given reader. The seq continues until the end of the reader is reached.

The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values. If non-laziness is needed, see parse-stream.

Returns a lazy seq of Clojure objects corresponding to the JSON read from
the given reader. The seq continues until the end of the reader is reached.

The array-coerce-fn is an optional function taking the name of an array field,
and returning the collection to be used for array values.
If non-laziness is needed, see parse-stream.
sourceraw docstring

parsed-smile-seqclj

(parsed-smile-seq reader)
(parsed-smile-seq reader key-fn)
(parsed-smile-seq reader key-fn array-coerce-fn)

Returns a lazy seq of Clojure objects corresponding to the SMILE read from the given reader. The seq continues until the end of the reader is reached.

The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values.

Returns a lazy seq of Clojure objects corresponding to the SMILE read from
the given reader. The seq continues until the end of the reader is reached.

The array-coerce-fn is an optional function taking the name of an array field,
and returning the collection to be used for array values.
sourceraw docstring

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

× close