Liking cljdoc? Tell your friends :D

json-utils.traversal


json-branch?clj/s

(json-branch? form)

True if the form is a branch in a json data structure.

True if the form is a branch in a json data structure.
sourceraw docstring

json-childrenclj/s

(json-children form)

Returns the children of the (json) form.

Returns the children of the (json) form.
sourceraw docstring

json-tree-seqclj/s

Provides a tree-seq for json structures.

Provides a tree-seq for json structures.
sourceraw docstring

kv-external-uri?clj/s

(kv-external-uri? form)
source

prewalkclj/s

(prewalk parent state state-fn replace-fn form)

Like clojure.walk/prewalk but stateful. parent is the parent of the form. state is recursed down through the form, at each level updated by the state-fn (which must accept previous state, the parent form and the current form. replace-fn accepts the current state and form.

Like clojure.walk/prewalk but stateful.
parent is the parent of the form. state is recursed down through the form,
at each level updated by the state-fn (which must accept previous state, the
parent form and the current form. replace-fn accepts the current state and form.
sourceraw docstring

replaceclj/s

(replace dont-expand expand-levels)
source

update-stclj/s

(update-st state parent form)
source

vec?clj/s

(vec? x)
source

with-pathclj/s

(with-path form
           &
           {:keys [expand-levels exceptions]
            :or {exceptions #{} expand-levels 0}})

Decorates a form with :path information at all levels. Excepts either clojure data structures or a json string. :expand-levls is an integer which determines to how many levels down into the form external uri's should (still) be expanded. The default is 0. :exceptions is a set of keywords not to be uri/resolved.

Decorates a form with :path information at all levels.
Excepts either clojure data structures or a json string.
:expand-levls is an integer which determines to how many levels down into the form
external uri's should (still) be expanded. The default is 0.
:exceptions is a set of keywords not to be uri/resolved.
sourceraw docstring

with-path-promisecljs

(with-path-promise form
                   f
                   &
                   {:keys [expand-levels exceptions]
                    :or {exceptions #{} expand-levels 0}})

Same as with path but the first pass through the tree yielded any uncompleted promises, waits until those are resolved. cljs only. f is a completion/callback function to be applied to the fully resolved tree, e.g. to put it into some state, for example an Atom.

Same as with path but the first pass through the tree yielded any
uncompleted promises, waits until those are resolved. cljs only.
f is a completion/callback function to be applied to the fully
resolved tree, e.g. to put it into some state, for example an Atom.
sourceraw docstring

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

× close