-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty Array from JSON generates Element #190
Comments
This is not a bug. |
Ok, well, just to get it right:
This does feel a bit wobbly. I'd totally agree about the 2nd and 3rd case producing one empty "item" element. An empty array producing an empty element seems to be just wrong. How can an element be created from nothing? Whats the rational behind that decision? |
I gave this some more thought. You are right about arrays:
|
Hm, what about |
Good point @Simran-B. In both cases I'd expect no element.
|
Whats wrong?
Building a xml from a json object with an empty array creates an unexpected element in the xml.
(Version 10.1.1)
Code
Output
expected Output
The text was updated successfully, but these errors were encountered: