Liking cljdoc? Tell your friends :D

cheshire.generate

Namespace used to generate JSON from Clojure data structures.

Namespace used to generate JSON from Clojure data structures.
raw docstring

add-encoderclj

(add-encoder cls encoder)

Provide an encoder for a type not handled by Cheshire.

ex. (add-encoder java.net.URL encode-string)

See encode-str, encode-map, etc, in the cheshire.custom namespace for encoder examples.

Provide an encoder for a type not handled by Cheshire.

ex. (add-encoder java.net.URL encode-string)

See encode-str, encode-map, etc, in the cheshire.custom
namespace for encoder examples.
sourceraw docstring

encode-boolclj

(encode-bool b jg)

Encode a Boolean object to the json generator.

Encode a Boolean object to the json generator.
sourceraw docstring

encode-dateclj

(encode-date d jg)

Encode a date object to the json generator.

Encode a date object to the json generator.
sourceraw docstring

encode-intclj

(encode-int n jg)

Encode anything implementing java.lang.Number to the json generator.

Encode anything implementing java.lang.Number to the json generator.
sourceraw docstring

encode-longclj

(encode-long n jg)

Encode anything implementing java.lang.Number to the json generator.

Encode anything implementing java.lang.Number to the json generator.
sourceraw docstring

encode-mapclj

(encode-map m jg)

Encode a clojure map to the json generator.

Encode a clojure map to the json generator.
sourceraw docstring

encode-namedclj

(encode-named k jg)

Encode a keyword to the json generator.

Encode a keyword to the json generator.
sourceraw docstring

encode-nilclj

(encode-nil _ jg)

Encode null to the json generator.

Encode null to the json generator.
sourceraw docstring

encode-numberclj

(encode-number n jg)

Encode anything implementing java.lang.Number to the json generator.

Encode anything implementing java.lang.Number to the json generator.
sourceraw docstring

encode-ratioclj

(encode-ratio n jg)

Encode a clojure.lang.Ratio to the json generator.

Encode a clojure.lang.Ratio to the json generator.
sourceraw docstring

encode-seqclj

(encode-seq s jg)

Encode a seq to the json generator.

Encode a seq to the json generator.
sourceraw docstring

encode-strclj

(encode-str s jg)

Encode a string to the json generator.

Encode a string to the json generator.
sourceraw docstring

encode-symbolclj

(encode-symbol s jg)

Encode a clojure symbol to the json generator.

Encode a clojure symbol to the json generator.
sourceraw docstring

failcljmacro

(fail obj jg e)
source

generateclj

(generate jg obj date-format ex key-fn)
source

generate-arrayclj

(generate-array jg obj date-format e key-fn)
source

generate-basic-mapclj

(generate-basic-map jg obj date-format e)
source

generate-key-fn-mapclj

(generate-key-fn-map jg obj date-format e key-fn)
source

generate-mapclj

(generate-map jg obj date-format e key-fn)
source

i?cljmacro

(i? k obj)

Just to shorten 'instance?' and for debugging.

Just to shorten 'instance?' and for debugging.
sourceraw docstring

JSONablecljprotocol

to-jsonclj

(to-json t jg)
source

number-dispatchcljmacro

(number-dispatch jg obj e)
source

remove-encoderclj

(remove-encoder cls)

Remove encoder for a given type.

ex. (remove-encoder java.net.URL)

Remove encoder for a given type.

ex. (remove-encoder java.net.URL)
sourceraw docstring

write-stringclj

(write-string jg str)
source

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

× close