Write to JSON file for pre and post questionnaires