In order to build the project, run mvn install
. It should create JsonFlattener-1.0-SNAPSHOT-jar-with-dependencies.jar file in target directory.
Usage: java -jar target/JsonFlattener-1.0-SNAPSHOT-jar-with-dependencies.jar file_name
Main function expects file name as first argument.
Sample tests are provided in src/test directory:
- test/exp contains correctly flattened files
- test/inp contains input JSON files