You can also use this:-

public static KeyValuePair&lt;string,string&gt; KeyValue(YourClass obj)
        {
            return new KeyValuePair&lt;string, string&gt;(obj.id, obj.label);
        }


Before call

Json(result.ConvertAll(i =&gt; KeyValue(i)), JsonRequestBehavior.AllowGet);


MVC 4 and JsonResult format
In my septic system, I have a sump pump that pumps the liquid into the drainage field. We have a tank alarm in this tank with the pump, but someone (not sure if it was me or someone else) forgot to turn back on the alarm one time. So now that 1000 gallon tank is over flowing. The pump circuit has been blowing for me at the fuse box. It seems to blow the circuit based on getting a bunch of rain. I'll do a separate question for that.

My question is this. I can hear the pump run for a bit (I haven't kept track of the time) then stop. After a while it will start again. Is there a safety or something that would cause the pump to not run until there is no water left? This happens no matter if the float is hooked up or I am just plugged in straight. Or could it be the drainage field is full of water and needs to seep out so there is room for more?

I know the tank isn't empty cause shortly after the pump stops, water starts seeping out of the lid again. (and the alarm light is still on).
