camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Created] (CAMEL-10189) camel-jsonpath - Add support for simple functions?
Date Wed, 27 Jul 2016 11:26:20 GMT
Claus Ibsen created CAMEL-10189:

             Summary: camel-jsonpath - Add support for simple functions?
                 Key: CAMEL-10189
             Project: Camel
          Issue Type: Improvement
          Components: camel-jsonpath
            Reporter: Claus Ibsen

See SO

We can roll our own predicates in jsonpath where you can use ? as the placeholder. The trick
would be to either inline the functions in the string, and then do our own pre-parsing to
replace those predicates to ?, eg


gets pre-parsed as

And then we know that ${headers.role} is the simple funktion to execute as the predicate.

This message was sent by Atlassian JIRA

View raw message