Liking cljdoc? Tell your friends :D

full.json


convert-keysclj/s

(convert-keys json-map key-fn preserve-keys)
source

get-preserved-keysclj/s

(get-preserved-keys json-map key-fn preserve-keys)

:preserve-keys takes a vector of paths (as in multiple get-in). Child keys of those won't be kebabized or transformed to keywords. so it will retain whatever casing is in them.

:preserve-keys takes a vector of paths (as in multiple get-in).
Child keys of those won't be kebabized or transformed
to keywords. so it will retain whatever casing is in them.
sourceraw docstring

read-jsonclj/s≠

(read-json raw & {:keys [json-key-fn preserve-keys] :or {preserve-keys []}})
clj

Parses a JSON string and returns a hash-map

Parses a JSON string and returns a hash-map
source (clj)source (cljs)raw docstring

slurp-jsonclj

(slurp-json path)
source

slurp-json-resourceclj

(slurp-json-resource path)
source

write-jsonclj/s≠

clj
(write-json obj & {:keys [json-key-fn pretty] :or {json-key-fn ->camelCase}})
cljs
(write-json obj & {:keys [json-key-fn] :or {json-key-fn ->camelCase}})
source (clj)source (cljs)

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

× close