I know there were other questions asked here, but none of them addresses this specific issue.
When we have form like:
<input name="A" .. />
<input name="B[x1]" .. />
<input name="C[y][z]".. />
then all solutions suggested here just create the flat-hierarchy JSON, like:
{
"A" : "1",
"B[x1]" : "2"
}
However, the correct form-data it needs to be created should be :
{
"A" : "1",
"B" : {
"x1":"2
}
}
Is there any standard/builtin JS approach for that?