Skip to content

Pass expression as parameter #2

Description

@efpage

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions