Write partition map to JSON file