Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON and YML files comparator

Actions Status Actions Status Maintainability Test Coverage

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.

Example of comparing 2 files in stylish format

{
    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
}

Installation and use

  • 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.

About

It's the command line interface application which compares 2 JSON or YML files and prints the difference. Training project.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages