title: Deserialization of Json using reflection in C#
body: <p>I want to use the following Method with reflection using Newtonsoft.Json:</p>
  
  <pre><code>MyType object = JsonConvert.DeserializeObject&lt;MyType&gt;(jsonString);
  </code></pre>
  
  <p>This is my approach that doesn't work (ambiguous match exception) :</p>
  
  <pre><code>Type type = Type.GetType("MyType",false);
  Type JSONCovert = typeof(JsonConvert);
  MethodInfo deserializer = JSONCovert.GetMethod("DeserializeObject", new Type[] { typeof(String) });
  deserializer = deserializer.MakeGenericMethod(type);
  var o = deserializer.Invoke(null, new object[] { JsonString });
  </code></pre>