I'm working on an example where I need to change some values. Here is the link to access it: http://jsfiddle.net/k83hj1jb/
The current output is a flat array:
[
{"name":"options[11][140]","value":"140"},
{"name":"options[8][99]","value":"99"},
{"name":"options[8][103]","value":"103"}
]
What I want instead is something like this:
[
{
"options":
{
"11":{"140":"140"},
"8":
{
"99":"99",
"103":"103"
}
}
}
]
Is there an easy way to achieve this?