Liking cljdoc? Tell your friends :D

s-exp.legba.json

Simple utils to convert to and from jsonNode

Simple utils to convert to and from jsonNode
raw docstring

bytes->json-nodeclj

(bytes->json-node json-bytes)

Takes JSON bytes and returns a Jackson JsonNode

Takes JSON bytes and returns a Jackson JsonNode
raw docstring

clj->json-nodeclj

(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
raw docstring

clj->json-strclj

(clj->json-str x)

Takes a clj value and returns its JSON String representation

Takes a clj value and returns its JSON String representation
raw docstring

form-urlencoded-content-type?clj

(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`
raw docstring

json-content-type?clj

(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`)
raw docstring

json-mapper-defaultclj


json-node->cljclj

(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`
raw docstring

json-node->strclj

(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
raw docstring

JsonNodeToCljcljprotocol

-json-node->cljclj

(-json-node->clj node opts)

multipart-content-type?clj

(multipart-content-type? content-type)

Returns true if content-type is multipart/form-data

Returns true if `content-type` is `multipart/form-data`
raw docstring

set-mapper-defaults!clj

(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
raw docstring

str->json-nodeclj

(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
raw docstring

yaml-mapperclj


yaml-str->json-strclj

(yaml-str->json-str yaml-str)

Converts a YAML string to a JSON string

Converts a YAML string to a JSON string
raw 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