This is test task
This app converts the CSV file of the specified structure into a file with JSON.
Type | Attribute Name |
---|---|
integer | ID |
string | First Name |
string | Last Name |
string [true/false] | Status |
CSV:
123,Jack,Daniels,true
45,Johnny,Walker,false
6,John,Jameson,true
Will be converted to JSON:
[{"id":123,"firstName":"Jack","lastName":"Daniels","status":true},
{"id":45,"firstName":"Johnny","lastName":"Walker","status":false},
{"id":6,"firstName":"John","lastName":"Jameson","status":true}]
./mvnw clean package
java -jar target/file-converter-1.0-SNAPSHOT.jar --in {input-csv-file} [--out {output-json-file}]