When I use console.log(values), it returns "[object Object]" instead of logging the array as expected.
This is the code snippet I'm working with:
let values = {
"coins": 0,
"griffinFeathers": 0,
"souvenir": 0,
"cogs": 0,
"cats": 0,
"golems": 0,
"champions": 0,
"minotaurs": 0,
"inquisitors": 0
}
JSON.stringify(FileLib.write("MinotaurLoot", "values.json", values));
function thing() {
fileThing = JSON.stringify(FileLib.read("MinotaurLoot", "values.json"));
if (griffin_thing_idk) fileThing.griffin++;
}
console.log(values) // [object Object]