Dynamically generate the JSON files