Liking cljdoc? Tell your friends :D

jq.transducers


->JsonNodeclj

(->JsonNode)
(->JsonNode mapper)

Returns a transducer that given a Java object maps it to a JsonNode. Accepts an optional Jackson ObjectMapper.

Returns a transducer that given a Java object maps it to a JsonNode.
Accepts an optional Jackson ObjectMapper.
sourceraw docstring

executeclj

(execute expression)
(execute expression opts)

Returns a transducer that accepts JsonNode on which the expression will be applied. Optional opts are supported that are passed for the jq.api/stream-processor. Specific opts for the transducer: :cat - whether to catenate output, default true

Returns a transducer that accepts JsonNode on which
the expression will be applied.
Optional opts are supported that are passed for the `jq.api/stream-processor`.
Specific opts for the transducer:
  :cat - whether to catenate output, default true
sourceraw docstring

JsonNode->valueclj

(JsonNode->value)
(JsonNode->value mapper)

Returns a transducer that give a JsonNode maps it to a Java Object. Accepts an optional Jackson ObjectMapper.

Returns a transducer that give a JsonNode maps it to a Java Object.
Accepts an optional Jackson ObjectMapper.
sourceraw docstring

parseclj

(parse)
(parse mapper)

Returns a transducer that given a JSON String parses it into a JsonNode. Accepts an optional Jackson ObjectMapper.

Returns a transducer that given a JSON String parses it into a JsonNode.
Accepts an optional Jackson ObjectMapper.
sourceraw docstring

pretty-printclj

(pretty-print)
(pretty-print mapper)

Same as the serializer but the output string is indented. ObjectMapper is copied to prevent side effects in case mapper is shared.

Same as the `serializer` but the output string is indented.
ObjectMapper is copied to prevent side effects in case mapper is shared.
sourceraw docstring

processclj

(process expression)
(process expression opts)
(process expression opts mapper)

Returns a convenience transducer that:

  • maps a Java Object to a JsonNode;
  • maps a JQ expression on the JsonNode;
  • catenates the output;
  • maps a JsonNode to a JavaObject. Accept opts that will be passed to the jq.api/stream-processor Accepts a Jackson ObjectMapper that will be used for both
Returns a convenience transducer that:
- maps a Java Object to a JsonNode;
- maps a JQ expression on the JsonNode;
- catenates the output;
- maps a JsonNode to a JavaObject.
Accept opts that will be passed to the `jq.api/stream-processor`
Accepts a Jackson ObjectMapper that will be used for both
sourceraw docstring

serializeclj

(serialize)
(serialize mapper)

Returns a transducer that given a JsonNode serializes it to a String. Accepts an optional Jackson ObjectMapper.

Returns a transducer that given a JsonNode serializes it to a String.
Accepts an optional Jackson ObjectMapper.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close