This is an api useful to convert the different version of files. Currently supported version are json to dsv (delimiter separated values) and vice-versa.
Run the following command in the workspace
mvn clean package
java -jar path\to\jar\file-format-factory-{version}-jar-with-dependencies.jar <input_filepath> <input_file_type> <output_filepath> <output_file_type> <delimiter>
e.g.
java -jar file-format-factory-1.0.0-jar-with-dependencies.jar /tmp/data/data.json json /tmp/data/data.csv dsv ,
Above command will convert the json file into the CSV format.
- dsv
- json
Note: delimiter argument is required, if one of the file type is dsv (delimited separated values).