wI2L/jsondiff

feat request: Patch colorized git-diff style output

blacktop opened this issue · 2 comments

Would it be possible to represent the diffs similar to the way git diffs work?

wI2L commented

@blacktop This library generates a JSON Patch (RFC6902), which is a list of operations representing the differences between two JSON documents.

What you're asking for is outside the feature scope of this package.

You're probably looking for something like this, which does what you described: https://github.com/andreyvit/json-diff

Also see this other project: https://github.com/yudai/gojsondiff

Feel free to add more context if you think I misunderstood your question.

Thank you for those links! ❤️