it's 2025 now, so you can add System.Net.Http.Json package and then reference it
using System.Net.Http.Json;