Simple utils to convert to and from jsonNode
Simple utils to convert to and from jsonNode
(bytes->json-node json-bytes)Takes JSON bytes and returns a Jackson JsonNode
Takes JSON bytes and returns a Jackson JsonNode
(clj->json-node x)Takes a clj value and converts it to a Jackson JsonNode
Takes a clj value and converts it to a Jackson JsonNode
(clj->json-str x)Takes a clj value and returns its JSON String representation
Takes a clj value and returns its JSON String representation
(form-urlencoded-content-type? content-type)Returns true if content-type is application/x-www-form-urlencoded
Returns true if `content-type` is `application/x-www-form-urlencoded`
(json-content-type? content-type)Returns true if content-type is application/json or a +json
structured syntax suffix type (ex: application/problem+json)
Returns true if `content-type` is `application/json` or a `+json` structured syntax suffix type (ex: `application/problem+json`)
(json-node->clj node)(json-node->clj node opts)Takes a Jackson JsonNode returns an equivalent clj datastructure.
:key-fn controls how map-entries keys are decoded, defaulting to keyword
Takes a Jackson JsonNode returns an equivalent clj datastructure. `:key-fn` controls how map-entries keys are decoded, defaulting to `keyword`
(json-node->str json-node)Takes a Jackson JsonNode and returns an equivalent String value
Takes a Jackson JsonNode and returns an equivalent String value
(-json-node->clj node opts)(multipart-content-type? content-type)Returns true if content-type is multipart/form-data
Returns true if `content-type` is `multipart/form-data`
(set-mapper-defaults! object-mapper)Sets sane defaults on jsonista, without this jsonista will do mad stuff such as serializing POJO fields as json attributes or ignoring trailing content after a json value
Sets sane defaults on jsonista, without this jsonista will do mad stuff such as serializing POJO fields as json attributes or ignoring trailing content after a json value
(str->json-node json-str)Takes a json-str String and returns a Jackson JsonNode
Takes a json-str String and returns a Jackson JsonNode
(yaml-str->json-str yaml-str)Converts a YAML string to a JSON string
Converts a YAML string to a JSON string
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 |