Fix debugging functionality

Fix what I broke the other day, resume ability to save JSON to file