Liking cljdoc? Tell your friends :D
All platforms.

fieldtest.json

JSON encoding for the HTTP transport and for decision handoff.

Uses cheshire on the JVM and js/JSON in ClojureScript and nbb. cheshire is required only inside the :clj branch so that ClojureScript builds and nbb don't load it, and bb lint:no-infra checks this.

Decoding keywordizes object keys. Keywords encode as their full name (:a/b -> "a/b") and insts as ISO-8601 strings with milliseconds.

JSON encoding for the HTTP transport and for decision handoff.

Uses cheshire on the JVM and `js/JSON` in ClojureScript and nbb. cheshire is
required only inside the `:clj` branch so that ClojureScript builds and nbb
don't load it, and `bb lint:no-infra` checks this.

Decoding keywordizes object keys. Keywords encode as their full name
(`:a/b` -> "a/b") and insts as ISO-8601 strings with milliseconds.
raw docstring

decodeclj/s

(decode s)

Decodes a JSON string, keywordizing object keys. Throws on invalid JSON.

Decodes a JSON string, keywordizing object keys. Throws on invalid JSON.
sourceraw docstring

encodeclj/s

(encode x)

Encodes Clojure data as a JSON string.

Encodes Clojure data as a JSON string.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close