using System;
using System.Collections.Generic;
using System.Text.Json;
var json = """
{
"one": 1,
"two": 2
}
""";
var d = JsonSerializer.Deserialize<IDictionary<string, int>>(json);
Console.WriteLine(d);