(apply-values json path values & {:keys [enum-limit]})Given json data, path and values, apply them to the structure. If there is no place to put a value, enumerate further possible paths and use those.
Given json data, path and values, apply them to the structure. If there is no place to put a value, enumerate further possible paths and use those.
(discrete? path)Is the path free of wildcards?
Is the path free of wildcards?
(enumerate path & {:keys [limit]})Given a json path, return a lazy seq of concrete key paths. wildcards/ranges will be enumerated up to :limit, which defaults to 10
Given a json path, return a lazy seq of concrete key paths. wildcards/ranges will be enumerated up to :limit, which defaults to 10
(excise json path & {:keys [prune-empty?]})Given json data and a parsed path, return the data without the selection, and any empty container. If :prune-empty? is true, will remove empty arrays and maps
Given json data and a parsed path, return the data without the selection, and any empty container. If :prune-empty? is true, will remove empty arrays and maps
(parse path)Given a JSON-path, parse it into data
Given a JSON-path, parse it into data
(select json path)Given json data and a parsed path, return a selection vector.
Given json data and a parsed path, return a selection vector.
(select-paths json path)Given json data and a parsed path, return a selection map of key paths to values
Given json data and a parsed path, return a selection map of key paths to values
(union-of1 p)A comma separated union of at least 1 of something. Returns a set.
A comma separated union of at least 1 of something. Returns a set.
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 |