Liking cljdoc? Tell your friends :D

clj-json-patch.util


*keywordize*clj

source

->keyclj

(->key seg)
source

add-patch-valueclj

(add-patch-value obj path val)

Add val at path in obj

Add val at path in obj
sourceraw docstring

apply-patchclj

(apply-patch obj patch)
source

clean-prefixclj

(clean-prefix prefix path)
source

diff*clj

(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

(diff-vecs obj1 obj2 prefix)
source

eval-escape-charactersclj

(eval-escape-characters segment)
source

gen-opclj

(gen-op t)
source

get-patch-valueclj

(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

(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

(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

(inject-escape-characters segment)
source

move-patch-valueclj

(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

(remove-patch-value obj path)

Remove the value at 'path' from obj.

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

replace-patch-valueclj

(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

(sanitize prefix patch)
source

sanitize-prefix-in-patchclj

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

set-patch-valueclj

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

Set val at path in obj

Set val at path in obj
sourceraw docstring

test-patch-valueclj

(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

(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