Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
Setting dropRootElement to true, dropRootElementInXmlStream to false and serializeAsArray is sufficient to do a top level array serialization, example,
[{"someobject":{"a":"value"}}]
However if someobject is also expected to be an array the setting "arrayKeys" properties loses top level '[]':
{"someobject":[{"a":"value"}]}
Fixing it will lead to
[{"someobject":[{"a":"value"}]]