Skip to content
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

Pass expression as parameter #2

Open
efpage opened this issue Nov 28, 2019 · 0 comments
Open

Pass expression as parameter #2

efpage opened this issue Nov 28, 2019 · 0 comments

Comments

@efpage
Copy link

efpage commented Nov 28, 2019

Hy,

I was looking for an option to pass expressions to the node. My very simple solution works.

Just add msg.expression to the function call in node-red-contrib-jsonpath.js, line 50:

50: var evalResult = jsonPath.eval(input, node.expression || msg.expression);

Now you can set the expression as a msg.expression. Not sure if this is perfect, but it works!

Eckehard

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

No branches or pull requests

1 participant