Suppose I have this html:
<td>
<input type="hidden" name="params[test][index]" value="0">
<input type="hidden" name="params[test][name]" value="2">
<input type="hidden" name="params[other][]" value="0">
<input type="hidden" name="params[test2]" value="0">
</td>
And I want to grab all the inputs of the params array into my jquery as an array or as a json:
(not sure of the syntax but something like that)
var $params = { test => {index =>0, name=>2},other=>[0],test2=>0};
What should I do?