Blazor Используйте статические файлы json
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
Jittery Jellyfish
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");