I have the JSON array in the file colors.json
{
"colors": [
{"RGB": "100, 33, 93","HEX": "Computer Science"},
{"RGB": "33, 82, 100","HEX": "#55d1ff"},
{"RGB": "32, 56, 11","HEX": "#518e1d"}
]
}
and the js addColors.js
function addColor(){
//code
}
that is run from an html form.
After getting data from by html form, via the js, how would I then append it to the colors.json file?
Thank you Josh