I use this action in controller:
public JsonResult DoSomething(int id )
{
char result = '0';
....
return this.Json( result, JsonRequestBehavior.AllowGet );
}
Results are in double quotes: “0”, “1”, “2” etc.
How can I get results without double quotes as 0, 1, 2 etc. ?
Use the correct type for
resultand you should get a non-string for the integer.