Satish Hirpara

Satish Hirpara

  • 1.5k
  • 256
  • 42.1k

Json String Download includes "<!-- html is corrupted -->"

Jan 18 2016 8:44 AM
Hello All,
 
I am trying to download Json result from 1 url and while downloading that Json String using WebClient, I am getting the downloaded string  and along with that i am also getting "<!-- html is corrupted -->" at the end of the Json result so that causing error while serialization using Newtonsoft and that "<!-- html is corrupted -->"
is not available in Json result then also it appears when i download the result.
 
Please find below code that i have written.
 
var jsonOrders = new WebClient().DownloadString(urlJsonData).Trim(); 
 
 
Please let me know if anyone knows the solution.
Thanks in advance