C#でHttpClientを使ってWeb APIと通信するサンプル、 JSONを扱うサンプルのコードです。
はてなブログの以下の記事の掲載用です。
『【C#】System.Net.Http.HttpClientを使ってWeb APIとHTTP通信してみよう』
https://iwasiman.hatenablog.com/entry/20210622-CSharp-HttpClient
『【C#】System.Text.Json でJSONを扱ってみよう』
https://iwasiman.hatenablog.com/entry/20210614-CSharp-json