var json = $("#form").serializeObject(); $.ajax({ url: "/getUser", type: "get", dataType: "json", data: json, success:function(data) { console.log(data); } });