jsonkeycompare

Crates.iojsonkeycompare
lib.rsjsonkeycompare
version0.1.1
sourcesrc
created_at2024-11-03 07:01:12.169781
updated_at2024-11-03 07:01:12.169781
descriptionA very simple program that compares two or more JSON files and reports any keys that are present in the first file but not in any of the other files.
homepage
repository
max_upload_size
id1433432
size15,013
Boris (borisnliscool)

documentation

README

JsonKeyCompare

A very simple program that compares two or more JSON files and reports any keys that are present in the first file but not in any of the other files.

Usage:

jsonkeycompare <main_file> <other_file_1> <other_file_2> ... [--fail] [--sort]

Options:

--fail
    Exit with non-zero status if any files are missing keys.
--sort
    Sort the output alphabetically.

Tip:

You can use wildcard expansion (at least on Linux) to compare multiple files easily:

jsonkeycompare main.json *.json
Commit count: 0

cargo fmt