(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.
(read-json raw & {:keys [json-key-fn preserve-keys] :or {preserve-keys []}})
Parses a JSON string and returns a hash-map
Parses a JSON string and returns a hash-map
(write-json obj & {:keys [json-key-fn pretty] :or {json-key-fn ->camelCase}})
(write-json obj & {:keys [json-key-fn] :or {json-key-fn ->camelCase}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close