developer-skills-matrix
developer-skills-matrix copied to clipboard
Automation: Convert CSV file to JSON
We want an automated action that runs when the rubric.csv file is changed - it should parse the file into the JSON format and overwrite rubric.json.
We can use the TypeScript infrastructure to write the code and have the action file run it.
CSV is:
category, sub-category, beginner, advanced beginner, intermediate, advanced, expert
JSON should be:
category: {
subcategory: {
beginner: ''
advanced beginner: ''
intermediate: ''
advanced: ''
expert: ''
}
}
Can I work on this, where does the json need to be put?
@KendallDoesCoding there is a file called rubric.json in the rubric folder, where rubrc.csv is.
@nhcarrigan While working, I was wondering, why should we not use a CLI csv2json convertor with GitHub Actions 🤔
If the package will give us the output we want, go for it!