Passing php multidimensional array to ajax.

Passing php multidimensional array to ajax.

I have the following form elements for example as starting from subproduct[0] all the way to subproduct[6].
How can I pass these form values to my php page using the following jquery?
  1. $.ajax({
                      type: "POST",
                      url: "includes/add_to_wishlist.php",
                      data: { productid: productvalue, variant1: variantopt1, variant2: variantopt2, variant3: variantopt3, wishcustomerid: wishcustomeridopt, wishlist_id: wishlist_id },
                    success: showwishlistresponse(productvalue)



I have no idea how to pass these multidimensional arrays in the data field shown above. I'm pretty new to all of this, so please be gently and explain if you can please. Thx in advance for your time and for helping me :)