I have some code which should save a word with the other words in the .json file already and it KINDA does the job, it reads the file(fs.readFileSync) as a const and when saving with fs.WriteFileSync it just puts random 's in the text like this 
I don't know why it does it but it's really annoying (readBl is a function to read it and save it as a variable just so when I want to I can get it to read it with a command, I know I could do it in other ways but IDC) My code :
if(msg.content.startsWith('-addconf '))
{
var newword = msg.content.slice(9);
if(blacklisted.includes(newword))
return msg.channel.sendMessage("This word has already been blacklisted.")
let rawdata = fs.readFileSync('blacklist.json');
let rawRead = JSON.parse(rawdata);
const str = JSON.stringify(rawRead);
const str1 = str.replace('}', '');
const str2 = str1.replace('{"blacklist":', '');
//const str3 = str2.replace('""', '');
let balance = {
blacklist: str2 + newword
};
let data = JSON.stringify(balance);
fs.writeFileSync('blacklist.json', data);
readBl();
msg.channel.sendMessage("Added a blacklisted word, test it out.")
}