Implementation details of io.github.ralfspoeth.cljson. Not part of the public API; may change without notice.
Implementation details of io.github.ralfspoeth.cljson. Not part of the public API; may change without notice.
(clj->json x kf)Converts Clojure data x into a Greyson JsonValue, applying kf
to every map key. See io.github.ralfspoeth.cljson/->greyson.
Converts Clojure data `x` into a Greyson JsonValue, applying `kf` to every map key. See io.github.ralfspoeth.cljson/->greyson.
(json-key k)Default key function for ->greyson: strings stay as they are,
keywords lose the leading colon but keep their namespace
(:a -> "a", :my.ns/a -> "my.ns/a"), anything else goes
through str.
Default key function for ->greyson: strings stay as they are, keywords lose the leading colon but keep their namespace (:a -> "a", :my.ns/a -> "my.ns/a"), anything else goes through `str`.
Converts a Greyson JsonValue into Clojure data. Use io.github.ralfspoeth.cljson/->clj instead of calling this directly.
Converts a Greyson JsonValue into Clojure data. Use io.github.ralfspoeth.cljson/->clj instead of calling this directly.
(-clj v key-fn)Returns the Clojure representation of v, applying key-fn
to every object member name.
Returns the Clojure representation of `v`, applying `key-fn` to every object member name.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |