The project is in a healthy, maintained state
compare multiple json files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 2.0.1, < 3
>= 2.21.2, < 3
 Project Readme

dorian-json-compare

Compare keys and string leaves between two JSON files.

Install

gem install dorian-json-compare

Also included in the aggregate gem:

gem install dorian

Usage

json-compare file1.json file2.json [root1 root2]

Run json-compare -h for generated option details and json-compare -v for the installed version.

Notes

  • Prints missing keys or type mismatches to stderr and exits non-zero when differences are found.

Examples

Compare two locale files

json-compare en.json fr.json en fr