Skip to content

Support reading a json array directly to a Java stream #825

@SingingBush

Description

@SingingBush

Currently we have to get a collection then convert it to a stream:

final List<String> list = reader.read("$.store.book.[*].title", List.class);

final Stream<String> stream = list.stream();

it would be convenient to be able to do this directly:

final Stream<String> stream = reader.read("$.store.book.[*].title", Stream.class);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions