An alternative to Jquery $.serialize() when you are not using a form.