You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in ArrayNode format automatically, even for 1 element lists which are currenty returned by JsonNode.get("element") as an ObjectNode. For more context please see this SO question. Thanks!
The text was updated successfully, but these errors were encountered:
Thank you for your suggestion. We can consider something like this (getAsArray() perhaps). But it cannot quite be XML-specific, altho this could be generally useful across data formats.
cowtowncoder
changed the title
Improve support for XML lists
Improve support for XML lists via JsonNodeDec 24, 2024
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: