Machine-readable JSON output for automation.
$ diffx --output json tests/fixtures/file1.json tests/fixtures/file2.json
? 1
[
{
"Modified": [
"age",
30,
31
]
},
{
"Modified": [
"city",
"New York",
"Boston"
]
},
{
"Added": [
"items[2]",
"orange"
]
}
]
$ diffx --output yaml tests/fixtures/file1.json tests/fixtures/file2.json
? 1
- Modified:
- age
- 30
- 31
- Modified:
- city
- New York
- Boston
- Added:
- items[2]
- orange
Only report whether files differ.
$ diffx --brief tests/fixtures/file1.json tests/fixtures/file2.json
? 1
Files tests/fixtures/file1.json and tests/fixtures/file2.json differ
Exit code only, no output.
$ diffx --quiet tests/fixtures/file1.json tests/fixtures/file2.json
? 1