asp.net core 3.1: cast jObject to dictionary<string,string>

C#
string json = @"{""key1"":""value1"",""key2"":""value2""}";

var values = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
Source

Also in C#: