title: How to deserialize the data of a json document stored locally in the project folder
body: <p>A json file is stored in the Project folder.I want to deserialize  data of that  json document.Im getting error while fetching the path of json document. </p>
  
  <p>I used this code and got error "An exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll but was not handled in user code"</p>
  
  <pre><code>        string file = HttpContext.Current.Server.MapPath("~/project.Services/xyz/myjsonfile.json");
  
              using (StreamReader reader = new StreamReader(file))
              {
                collection = JsonConvert.DeserializeObject&lt;Dictionary&lt;string, string&gt;&gt;(reader.ReadToEnd());             
             }
  </code></pre>