Migrating alerts from Grafana 8.1.7 to 10.2.2

I’m trying to migrate from our old grafana 8.1 install to a new dockerized grafana 10.2. All alerts on grafana 8.1 are linked to the dashboards, so they appear in the JSON file. I’ve tried to import a JSON file of our dashboard to grafana 10.2 but it seems alerts are not imported (the alert tab on the graphs does not show any alerts and no alerts are in the Alerts Rules tab). Is there a way to migrate the alerts from the JSON file ?