Issue #6: create parent directory of JSON file