Hacker News new | ask | show | jobs
by h4ch1 260 days ago
What's a SoTA diffing algorithm for diffing of a deeply nested JSON structure for example?

I am currently researching and have built my own naive implementation for diffing a dense tree and the performance... isn't very great.

The ideal outcome is to create patches by diffing different versions of the JSON object, then being able to apply said patches anywhere in the "commit" tree.

1 comments

If in Python, have you looked at dictdiffer or JYCM?

https://github.com/eggachecat/jycm