aogriffiths / jsondiff-js

A JavaScript implementation to create json patches of the JSON Media Type for partial modifications: http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-08. See also https://github.com/bruth/jsonpatch-js.
https://github.com/aogriffiths/jsondiff-js
BSD 2-Clause "Simplified" License
23 stars 11 forks source link

Diff doesn't encode '/' and '~' #8

Open andreas-gruenbacher opened 10 years ago

andreas-gruenbacher commented 10 years ago

The diff algorithm doesn't encode '/' and '~' in path components, leading to broken patches if those characters are used in object property names.