Liking cljdoc? Tell your friends :D

jq.api


executeclj

(execute data query)
(execute data query opts)

Given a JSON data string (1) and a JQ query string (2) returns a JSON string result of (2) applied on (1). Output stream is joined with the new-line symbol. Accepts optional options map. NOTE: if your query doesn't change then use the processor.

Given a JSON data string (1) and a JQ query string (2)
returns a JSON string result of (2) applied on (1).
Output stream is joined with the new-line symbol.
Accepts optional options map.
NOTE: if your query doesn't change then use the `processor`.
sourceraw docstring

flexible-processorclj

(flexible-processor query)
(flexible-processor query opts)

Given a JQ query string (1) compiles it and returns a function that given a JsonNode object or a String (2) will return either a JSON string or json node with (1) applied on (2). Accepts optional options map.

Given a JQ query string (1) compiles it and returns a function that given
a JsonNode object or a String (2) will return
either a JSON string or json node with (1) applied on (2).
Accepts optional options map.
sourceraw docstring

json-node->stringclj

source

processorclj

(processor query)
(processor query opts)

Given a JQ query string (1) compiles it and returns a function that given a JSON string (2) will return a JSON string with (1) applied on (2). Output stream is joined with the new-line symbol. Accepts optional options map.

Given a JQ query string (1) compiles it and returns a function that given
a JSON string (2) will return a JSON string with (1) applied on (2).
Output stream is joined with the new-line symbol.
Accepts optional options map.
sourceraw docstring

stream-processorclj

(stream-processor query)
(stream-processor query opts)

Given a JQ query string (1) compiles it and returns a function that given a JsonNode object will return an Collection. Returning an Collection handles that a JQ script returns 0 or more JSON entities. Accepts optional options map.

Given a JQ query string (1) compiles it and returns a function that given
a JsonNode object will return an Collection.
Returning an `Collection` handles that a JQ script returns 0 or more JSON entities.
Accepts optional options map.
sourceraw docstring

string->json-nodeclj

source

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

× close