How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?
问题 I am trying to consume a web service that claims to return JSON, but actually always returns JSONP. I don't see a way to change that service's behavior. I would like to use NewtonSoft Json.Net to parse the result. I have declared a class, let's call it MyType that I want to deserialize the inner JSON result into. JSONP: parseResponse({ "total" : "13,769", "lower" : "1", "upper" : "20"}) As you can see this is not correct JSON as it has parseResponse( prefix and ) suffix. While this example is