I am new in vb.net, I am developing a webservice. I want to send a response in a json object. I have only one string in response.
public string GetUser(String IMEI)
{
string msg = "";
string SQL1 = "Select Email from [Customer] where [Vehicle]='" + IMEI + "'";
DataTable dt = dbcom.GetDataTable(SQL1);
if (dt.Rows.Count > 0)
{
msg = dt.Rows[0]["Email"].ToString();
//CV(username, IMEI);
//vehiclechk(IMEI);
}
return msg;
}
This send xml string.
How we convert msg string in to json.