Crates.io | jsonkeycompare |
lib.rs | jsonkeycompare |
version | 0.1.1 |
source | src |
created_at | 2024-11-03 07:01:12.169781 |
updated_at | 2024-11-03 07:01:12.169781 |
description | 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. |
homepage | |
repository | |
max_upload_size | |
id | 1433432 |
size | 15,013 |
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.
jsonkeycompare <main_file> <other_file_1> <other_file_2> ... [--fail] [--sort]
--fail
Exit with non-zero status if any files are missing keys.
--sort
Sort the output alphabetically.
You can use wildcard expansion (at least on Linux) to compare multiple files easily:
jsonkeycompare main.json *.json