Use same names in JSON dict than ids in migration details

This makes JS code nicer