var str = JsonConvert.SerializeObject(new Dictionary<string, string> {
{ "key","value"},
{ "key2","value2"}});
File.WriteAllText("config.json", str);
str = File.ReadAllText("config.json");
var dict = JsonConvert.DeserializeObject<Dictionary<string, string>>(str);