Implement CSV <-> JSON converter
-
Implement a CSV to valid JSON. Valid means that the generated JSON abides by the JSON schema (#3 (closed)) -
Implement JSON to CSV -
Add Unit test checking that the generated JSON from a sample CSV is valid according to the JSON schema (https://www.baeldung.com/introduction-to-json-schema-in-java#Validation)
Please use a library for that such as apache.common.csv or scala-csv-parser (or any other library that you google around).
Libraries
- https://index.scala-lang.org/piotr-kalanski/csv2class/csv2class/0.3.3?target=_2.11
- https://github.com/tixxit/delimited
- https://github.com/nrinaudo/kantan.csv (particularly this example)
- http://opencsv.sourceforge.net/ (intro)
- https://github.com/tototoshi/scala-csv
- pure scala
- pure scala 2.13
- pure scala & reflexion
- [https://www.becompany.ch/en/blog/2016/07/13/csv-parsing](tutorial using shapeless)
AST manipulation
Edited by mma227