json_diff_ex icon indicating copy to clipboard operation
json_diff_ex copied to clipboard

RFC 6902 Patch Format Support

Open Miserlou opened this issue 2 years ago • 3 comments

Hi there!

This is an excellent library, very fast! However, it does not seem to output to RFC 6902 format. It'd be wonderfully useful for web and live applications if this was a feature!

Miserlou avatar Jun 07 '22 13:06 Miserlou

ex: https://github.com/benjamine/jsondiffpatch/blob/master/src/formatters/jsonpatch.js

Miserlou avatar Jun 07 '22 13:06 Miserlou

@Miserlou sounds like a nice feature to add, have used JSON Patch, is a bit verbose for transports but way more understandable.

olafura avatar Jun 08 '22 15:06 olafura

Yeah! It's fatter on the wire, but since it's standardized it should be supported in more places, which makes it handy.

BTW, I'm using your library downstream here: https://github.com/Miserlou/live_json It's using another library for JSON-Patch support right now, but uses yours as the default behavior since it's much faster.

Miserlou avatar Jun 08 '22 17:06 Miserlou