Skip to content

Support for running functions over a result set - PR for #191#197

Open
transparentech wants to merge 2 commits intojson-path:masterfrom
transparentech:functions-over-result-set
Open

Support for running functions over a result set - PR for #191#197
transparentech wants to merge 2 commits intojson-path:masterfrom
transparentech:functions-over-result-set

Conversation

@transparentech
Copy link
Copy Markdown

This branch allows you to execute functions on result sets (as well as static arrays).

The basic idea is that we remove the tail function path from the rootpath. Then we evaluate the rootpath. Then we evaluate the function path on the result of the rootpath evaluation.

Happy to discuss any improvements.

@transparentech transparentech force-pushed the functions-over-result-set branch from 6a40215 to 74cb6d6 Compare March 4, 2016 10:13
@cegganesh84
Copy link
Copy Markdown

I was looking for this feature and found it in this PR. May I know when this will be merged? Thanks!

@johnwiesel
Copy link
Copy Markdown

I normally do not comment if I have nothing to contribute really but this PR has been open for over half a year and adds a feature I would love to see. Any news regarding this? Thank you for your understanding!

@jakeswenson
Copy link
Copy Markdown

I couldn't wait for this to (finally) get merged, so i forked it and pushed it to maven for my use. If anyone else needs this you can find it in maven central here

you should be able to use it like so:

<dependency>
    <groupId>io.paradoxical</groupId>
    <artifactId>json-path</artifactId>
    <version>2.3-experimental-1</version>
</dependency>

this includes this PR and my PR to add custom functions.

ciao

@rhavermans
Copy link
Copy Markdown

Functionality is in #377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants