Adding further work on JSON file creation