From http://stackoverflow.com/questions/1068189/jquery-ajax-post-and-object-as-data