Is there a way using JSON.NET to deserialize a file type directly to a C# dictionary type?
For example:
using (StreamReader file = File.OpenText(myFileName))
{
    Dictionary<string, int> mydictionary = new Dictionary<string, string>();
    JsonSerializer serializer = new JsonSerializer();
//is there a json.net format to make the next line work
    mydictionary = (JSONParameters)serializer.Deserialize(file, typeof(JSONParameters));
      
    //return mydictionary;
    }
 
     
    