-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Improve support for XML lists via JsonNode
#695
Comments
Thank you for your suggestion. We can consider something like this ( |
JsonNode
Created FasterXML/jackson-databind#4868 as follow-up |
... and closed that issue. There are reason it is not practical to do. I'll re-open this issue however. |
Since the other issue is closed, I add here my reasoning. With the current implementation,
but an
But both XML are have in fact the exact same structure, the only difference is the number of elements in the list. My proposal is to add to Since
|
Hello. I understand that Jackson 3 plans to better support formats other than JSON. In particular, for XML, it would be nice to have a method like
JsonNode.getArray(String element)
to get XML node lists inArrayNode
format automatically, even for 1 element lists which are currenty returned byJsonNode.get("element")
as anObjectNode
. For more context please see this SO question. Thanks!The text was updated successfully, but these errors were encountered: