(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.
(json-children form)
Returns the children of the (json) form.
Returns the children of the (json) form.
Provides a tree-seq for json structures.
Provides a tree-seq for json structures.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close