[ https://issues.apache.org/jira/browse/CAMEL-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787618#comment-13787618 ]
Claus Ibsen commented on CAMEL-6238: ------------------------------------ They have decent support for predicates now, i can do {code} .choice() .when().jsonPath("$.store.book[?(@.price < 10)]") .to("mock:cheap") .when().jsonPath("$.store.book[?(@.price < 30)]") .to("mock:average") .otherwise() .to("mock:expensive"); {code} > support JSONPath as a Camel Language for easy JSON filtering and expression > evaluation > -------------------------------------------------------------------------------------- > > Key: CAMEL-6238 > URL: https://issues.apache.org/jira/browse/CAMEL-6238 > Project: Camel > Issue Type: New Feature > Reporter: james strachan > Assignee: Claus Ibsen > Fix For: Future > > > JSON is a very popular message format; yet its kinda painful performing > expressions on it as typically you have to marshal it first into some > specific domain model (or Maps / Lists) and then use some general purpose > Java expression language on it. > JSONPath looks pretty cool though; kinda like XPath but designed for > arbitrary JSON payloads > https://code.google.com/p/json-path/ > the library is small & Apache licensed so it should be pretty easy to wrap up > as a Camel Language -- This message was sent by Atlassian JIRA (v6.1#6144)