I need to remove slash from my output json. The following function i am using in my API controller. But still i am getting the slash in result. How can i remove this slash?
public string GetEmployeeDetails(string AccessCard)
{
DataTable dt =GetEmployeeByAccessCard(AccessCard);
if (dt.Rows.Count>0)
{
string JSONresult;
JSONresult = JsonConvert.SerializeObject(dt);
string outputjson = JSONresult.Replace("\\", "");
return outputjson;
}
else
return "No Data found";
}