To avoid the Webform issues that: A) you have a singe value entry in your JSON. e.g
"property": "hola"
and your webform says that "property" webform element is multiple we convert on the fly/on load
"property": "hola" to
"property":[ "hola" ]
But the same logic does not work for
"property": {"a":1} because we are decoding the JSON as an associative array which means "property" is already an array
and ends being again "property": {"a":1} instead of "property": [{"a":1}] which is what we need
What?
To avoid the Webform issues that: A) you have a singe value entry in your JSON. e.g
"property": "hola"
and your webform says that "property" webform element is multiple we convert on the fly/on load
"property": "hola"
to"property":[ "hola" ]
But the same logic does not work for
"property": {"a":1}
because we are decoding the JSON as an associative array which means"property"
is already anarray
and ends being again"property": {"a":1}
instead of"property": [{"a":1}]
which is what we need