Liking cljdoc? Tell your friends :D

cheshire.custom

DEPRECATED

Methods used for extending JSON generation to different Java classes. Has the same public API as core.clj so they can be swapped in and out.

DEPRECATED

Methods used for extending JSON generation to different Java classes.
Has the same public API as core.clj so they can be swapped in and out.
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

decodeclj

source

decode-smileclj

source

decode-streamclj

source

encodeclj

source

encode*clj

(encode* obj)
(encode* obj opt-map)
source

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-smileclj

source

encode-smile*clj

(encode-smile* obj)
(encode-smile* obj opt-map)
source

encode-strclj

(encode-str s jg)

Encode a string to the json generator.

Encode a string to the json generator.
sourceraw docstring

encode-streamclj

source

encode-stream*clj

(encode-stream* obj w)
(encode-stream* obj w opt-map)
source

encode-symbolclj

(encode-symbol s jg)

Encode a clojure symbol to the json generator.

Encode a clojure symbol to the json generator.
sourceraw docstring

generate-smileclj

source

generate-smile*clj

source

generate-streamclj

source

generate-stream*clj

source

generate-stringclj

source

generate-string*clj

source

handle-bigintcljmacro

(handle-bigint)
source

JSONablecljprotocol

to-jsonclj

(to-json t jg)
source

parseclj

source

parse-smileclj

source

parse-streamclj

source

parse-stringclj

source

parsed-seqclj

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

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

× close