Basically I have a loop incrementing i, and I want to do this:
var fish = { 'fishInfo[' + i + '][0]': 6 };
however it does not work.
Any ideas how to do this? I want the result to be
fish is { 'fishInfo[0][0]': 6 };
fish is { 'fishInfo[1][0]': 6 };
fish is { 'fishInfo[2][0]': 6 };
etc.
I am using $.merge to combine them if you think why on earth is he doing that :)