It's the command line interface application which compares 2 JSON or YML files and prints the difference in the format of your choice: stylish = default format, plain text or json.
{
chars1: [a, b, c]
- chars2: [d, e, f]
+ chars2: false
- checked: false
+ checked: true
- default: null
+ default: [value1, value2]
- id: 45
+ id: null
- key1: value1
+ key2: value2
numbers1: [1, 2, 3, 4]
- numbers2: [2, 3, 4, 5]
+ numbers2: [22, 33, 44, 55]
- numbers3: [3, 4, 5]
+ numbers4: [4, 5, 6]
+ obj1: {nestedKey=value, isNested=true}
- setting1: Some value
+ setting1: Another value
- setting2: 200
+ setting2: 300
- setting3: true
+ setting3: none
}
- JDK >= 20.0.1
# install
Make install
# help
./app/build/install/app/bin/app -h
# usage
./app/build/install/app/bin/app [-f=format] filepath1 filepath2
# filepath1 filepath2: paths to the compared files. Path may be absolute or relative.
# -f: output format option. Available formats: stylish (default), plain or json.