title: Blazor: Using local json file as storage
body: <p>I'm writing small client-side blazor app. To avoid using any DB (and creating whole API for it), as I have basically just a list of single class objects, I wanted to use json file.</p>
  <p>I know I can read from file:
  <code> forecasts = await Http.GetFromJsonAsync&lt;WeatherForecast[]&gt;(&quot;sample-data/weather.json&quot;);</code>
  But when I modify this &quot;<em>forecasts</em>&quot; list and try to do something like this:</p>
  <p><code>await Http.PostAsJsonAsync(&quot;sample-data/weather.json&quot;, forecasts);</code>
  or
  <code>await Http.PostAsJsonAsync&lt;WeatherForecast[]&gt;(&quot;sample-data/weather.json&quot;, forecasts);</code>
  It is not saving changes. I checked in browser and it is doing a POST with correct data, but receives 404 in return. Is it possible to save such a data after modification?</p>