Liking cljdoc? Tell your friends :D

clj-json-patch.util


*keywordize*clj/s

source

->keyclj/s

(->key seg)
source

add-patch-valueclj/s

(add-patch-value obj path val)

Add val at path in obj

Add val at path in obj
sourceraw docstring

apply-patchclj/s

(apply-patch obj patch)
source

clean-prefixclj/s

(clean-prefix prefix path)
source

diff*clj/s

(diff* obj1 obj2 prefix)

Prepares a JSON patch document representing the difference between two JSON objects.

Prepares a JSON patch document representing the difference
between two JSON objects.
sourceraw docstring

diff-vecsclj/s

(diff-vecs obj1 obj2 prefix)
source

eval-escape-charactersclj/s

(eval-escape-characters segment)
source

gen-opclj/s

(gen-op t)
source

get-patch-valueclj/s

(get-patch-value obj path)

Given the patch path, find the associated value.

Given the patch path, find the associated value.
sourceraw docstring

get-value-pathclj/s

(get-value-path obj val)
(get-value-path obj val prefix)

Traverses obj, looking for a value that matches val, returns path to value.

Traverses obj, looking for a value that matches val, returns path to value.
sourceraw docstring

has-path?clj/s

(has-path? obj path)

given the patch path, determines if the path exists in the obj

given the patch path, determines if the path exists in the obj
sourceraw docstring

inject-escape-charactersclj/s

(inject-escape-characters segment)
source

move-patch-valueclj/s

(move-patch-value obj from path)

Move value located at 'from' to the 'path'.

Move value located at 'from' to the 'path'.
sourceraw docstring

remove-patch-valueclj/s

(remove-patch-value obj path)

Remove the value at 'path' from obj.

Remove the value at 'path' from obj.
sourceraw docstring

remove-patch-value-funcclj/s

(remove-patch-value-func obj path)

Remove the value at 'path' from obj.

Remove the value at 'path' from obj.
sourceraw docstring

replace-patch-valueclj/s

(replace-patch-value obj path val)

Replace the value found at 'path' with that bound to 'val'.

Replace the value found at 'path' with that bound to 'val'.
sourceraw docstring

sanitizeclj/s

(sanitize prefix patch)
source

sanitize-prefix-in-patchclj/s

(sanitize-prefix-in-patch prefix idx patch)
source

set-patch-valueclj/s

(set-patch-value obj path val & [insert])

Set val at path in obj

Set val at path in obj
sourceraw docstring

test-patch-valueclj/s

(test-patch-value obj path val)

Ensure that the value located at 'path' in obj is equal to 'val'.

Ensure that the value located at 'path' in obj is equal to 'val'.
sourceraw docstring

transform-movesclj/s

(transform-moves obj1 obj2 patch)

Attempt to reconcile add/remove patch entries to a single move entry

Attempt to reconcile add/remove patch entries
to a single move entry
sourceraw docstring

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

× close