$.fn.serializeJson = function () {
    var o = {};
    var a = this.serializeArray();
    $.each(a, function () {            
        o[this.name] = this.value || '';
    });
    return o;
};

 

checkbox需要特殊处理一下

<input type="hidden" name="EqualMax" value="false">
<input type="checkbox" name="EqualMax" value="true">