A simple json_encode($_POST) might do the trick. You could either use json_decode() to make a PHP struct of it or send it more or less as it is to Javascript.
It looks like JSON is what we need. Would you suggest storing the key/value pairs in the same info field on the database table?