Add Stream-friendly alternative to JsoneNode.fields(): Set<Map.Entry<String, JsonNode>> properties() · Issue #3809 · FasterXML/jackson-databind (original) (raw)

Currently with Jackson 2.x the only way to traverse entries of ObjectNode is using fields() method.
This has the problem that it returns Iterator (of Map.Entry<String, JsonNode>) which is awkward to use (with Java 8 and above).

Similarly we can consider adding methods to replace:

for "values" stream.

Naming-wise I am thinking of

EDIT: At this point, favoring

backed by simple implementations of: