I use Json.net to parse json responce from web, but i have a problem if the json response contain html code.
For example:
string hj = @"{""data"": ""<a href=""www.google.com"">Google</a>""}";
JObject o1 = JObject.Parse(hj);
It raise a exception.
How can I parse the JSon response?
The JSON is invalid, so it can't be parsed. You have to escape the quotation marks inside the string:
string hj = @"{""data"": ""<a href=\""www.google.com\"">Google</a>""}";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With