Json.net Deserialize to JObject derived type
问题 public class A : JObject {} and I have the folowing deserialization code using (StreamReader responseStreamReader = new StreamReader(stream)) { using (JsonReader reader = new JsonTextReader(responseStreamReader)) { JsonSerializer serializer = new JsonSerializer(); return serializer.Deserialize<A>(reader); } } But it throws Invalid Cast Exception in fact the deserializer just need to create new A() instead of new JObject() and do exactly the same after that, it would be enough for me. How can