Currently, it's only possible to create an array by having multiple elements with the same name appear. This is problematic if you want a array that can have a single item.
I would propose a naming convention that ensures this.
For instance: name="foo.[bar]" or perhaps name="foo._bar_" would create the object {"foo": {"bar": []}}
I can make a PR for this, shouldn't be a huge lift at all. The purpose of this issue is mostly to see what your thoughts are.
Currently, it's only possible to create an array by having multiple elements with the same
nameappear. This is problematic if you want a array that can have a single item.I would propose a naming convention that ensures this.
For instance:
name="foo.[bar]"or perhapsname="foo._bar_"would create the object{"foo": {"bar": []}}I can make a PR for this, shouldn't be a huge lift at all. The purpose of this issue is mostly to see what your thoughts are.