Am using following code to convert data to Json and return value is: "{\"BillNo\":18}" . But i want to return value for key and value pair Like: {"BillNo":18}
public String Get()
{
var MaxBillNo = db.Billings.Max(b => b.BillNo.Substring(9, 5));
int i = Int32.Parse(MaxBillNo);
BillNumber billNumber = new BillNumber();
billNumber.BillNo = i;
string json = JsonConvert.SerializeObject(billNumber);
return json;
}