Skip to content

Pass expression as parameter #2

@efpage

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

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