(jassoc coll k v)
Like assoc, but with the following differences:
Like assoc, but with the following differences: - Automatically dispatches on the type of k for colls. If k is a string, we assoc the key-val pair to a map, otherwise we assoc it to a vector. - If coll is a scalar or is the wrong coll, (e.g. a map with a vector key), we overwrite the original coll. - If the vector index is out of bounds, we increase the size of the vector, filling in skipped entries with nils.
(jassoc-in m [k & ks] v)
Like assoc-in, but for jassoc. Returns v
if the keys seq is
empty.
Like assoc-in, but for jassoc. Returns `v` if the keys seq is empty.
(recursive-descent json)
Perform the recursive descent operation (".." in JSONPath syntax). Returns all possible sub-structures of a JSON data structure.
Perform the recursive descent operation (".." in JSONPath syntax). Returns all possible sub-structures of a JSON data structure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close