@toxonic
Okay so theres no validation going on, and some maybe incorrect naming, and an incorrect call to writeObject: so start like this:
//function store
inline function writePreset (fileName, myJSONData)
{
local PresetFile = PresetDir.getChildFile(fileName);
if (PresetFile.isFile())
{
PresetFile.writeObject(myJSONData);
}else{
// display an error here.....
};
}
So the most obvious problem is you were trying to save an array when the command expects JSON, so you should fix that at least...