I have an example with some values that I want to change, here the link http://jsfiddle.net/k83hj1jb/
The result is a flat array:
[
{"name":"options[11][140]","value":"140"},
{"name":"options[8][99]","value":"99"},
{"name":"options[8][103]","value":"103"}
]
I want change for something like this:
[
{
"options":
{
"11":{"140":"140"},
"8":
{
"99":"99",
"103":"103"
}
}
}
]
Is there a easy way ?