Edit: It appears I was a bit confused on what I was trying to accomplish. For those that took the time to explain this, thank you.
I’m trying to create a two dimensional array in Jquery/Javascript. I’ve done a decent amount of searching, testing and more searching but i’m unable to find a solution that really makes sense to me. (it’s been a very long week already….)
Below is the desired format of the array.
{"product":[{"attribute":"value","attribute":"value"}]}
That’s not a 2D array, but rather an object. Also, your product array contains only one object. I think you need something like this:
This will produce an array inside the
productproperty: