Hi experts
when i hit below mentioned url i see one json object in the browser but when i fetch the same url from below mentioned code
i get an parsing error
if anyone of you can help me in resolving the issue
using System.Net;
using System.Data;
using Newtonsoft.Json;
public partial class CS : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
string json = (new WebClient()).DownloadString("http://103.7.130.119/wbes/Report/GetDeclarationReport?regionId=2&date=15-02-2020&revision=97&utilId=d60942af-46df-44ad-ab49-adf1652a8ac0&isBuyer=0&byOnBar=0&byDCSchd=1");
GridView1.DataSource = JsonConvert.DeserializeObject<DataTable>(json);
GridView1.DataBind();
}
}
}