diff --git a/index.js b/index.js deleted file mode 100644 index 24ea26c..0000000 --- a/index.js +++ /dev/null @@ -1,18 +0,0 @@ -const fs = require("fs"); - -const data = fs.readFileSync("./data.csv", "utf-8"); - -const output = { - //your code here - - - - - - - - - //end of your code here -}; - -fs.writeFileSync("./output.json", JSON.stringify(output)); \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..06a8145 --- /dev/null +++ b/main.py @@ -0,0 +1,13 @@ +import json + +items = [] + +with open("./data.csv", "r", encoding="utf-8") as data: + #your code here + pass + #end of your code here + +with open("./output.json", "w") as file: + var_to_dump = {"items": items} + + json.dump(var_to_dump, file, ensure_ascii=False) \ No newline at end of file diff --git a/package.json b/package.json deleted file mode 100644 index b3cde48..0000000 --- a/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "datatest", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "keywords": [], - "author": "", - "license": "ISC" -}