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
Xml to Json array #16
Comments
XMLSerializer cannot decide in this case if a single child element constitutes an object property or a single element in an array. There must be a hint that elements within |
Implemented list of elements which enforce creation of an array from it’s childs even if there is no, only one or multiple elements with different name in it. In case of different name, information gets lost but it will be done with a log warning.
See #22 for implementation and unit tests. |
When converting XML to Json, if an element has only one child it won't be interpreted as a collection and it can cause problems:
i.e.
will be converted to:
But,
will be converted to:
So is there a way to tell XMLSerializer that an element should be an array?
The text was updated successfully, but these errors were encountered: