1.0.2 • Published 1 year ago

jsonpatch-rs v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Usage

let orig = {
  name: "hello",
  items: ["apple", "cherry"]
};
let dest = {
  name: "hello2",
  items: ["apple", "banana"]
};

diff(orig, dest)
//[
//  { op: 'replace', path: '/items/1', value: 'banana' },
//  { op: 'replace', path: '/name', value: 'hello2' }
//]

Performance

It's about 10x slower than fast-json-patch. I imagine it's because copying values js <-> rust is slow. But I'm not sure.

image

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago