var options = new JsonSerializerOptions
{
PropertyNameCaseInsensitive =true
};
await using var stream = new MemoryStream();
await JsonSerializer.SerializeAsync(stream, list, options);
stream.Position = 0;
using var reader = new StreamReader(stream);
return await reader.ReadToEndAsync();