changed password entry out of suspicion that my first attempt was the wrong one.
changed it again because it couldn't even find the correct json file.
changed it again because that error about the json file turned out to be because of a permissions issue.
I'm not sure what is going on anymore.
Added debug file for production purposes.