Re-fixing ability to have empty json files after inventory refactoring