flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
2.99k stars 214 forks source link

Consider expressing change paths as JSON Pointers (RFC 6901); probably more compact. #4

Closed flitbit closed 9 years ago

jamesplease commented 10 years ago

This is a great idea. Is there any interest in this? If so, I'd be willing to make up a PR.

jamesplease commented 9 years ago

ping @flitbit

flitbit commented 9 years ago

You may see that I've also authored json-ptr and I often use the two of these together but have decided not to create a dependency. The constructor for JsonPointer takes a path, which deep-diff happily already supplies for each change record. If you need JSON pointers they are easy to create using json-ptr.

jamesplease commented 9 years ago

Awesome. Thanks @flitbit!

Wtango commented 5 years ago

Is there any update for this topic? Is current deep-diff supports the paths syntax as JSON pointer?