json file is written to ~/Documents/test-structstore.json