Project

diff_json

0.0
Low commit activity in last 3 years
No release in over a year
Diffs two JSON objects and returns a JSON patch, or a left/right diff view, similar to the command line `diff` utility
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

diff_json

Takes two JSON documents and finds the difference between them. It can then return a JSON patch document, or generate an element-based left/right diff view, similar to a git diff display. This repo contains both a Ruby gem and a Python library, which have specific README files in their respective directories.

Two notes:

  • If all you need is quickly calculating a JSON patch, there are smaller, faster libraries out there, particularly in the Ruby realm. So, go with one of those if that's all you need. Due to the greater complexity of its diffing process, difference counting, and output capabilities, the diff finding process of this library is slower than many smaller libraries.
  • This library was originally written for a specific set of needs for an employer. So, if you're looking at the code and wondering "Why is that an option I would ever need?", blame that.