Re: Evaluate JsonPath on string inside a Map

2017-02-09 Thread Frank Wein
souciance wrote: Not sure if this is what you are after but I have done it this way: .when(PredicateBuilder.isEqualTo(ExpressionBuilder.languageExpression("jsonpath","$.Status"), "whatyouwantequalto")) The $.Status is a node in the json string. -- View this message in context: http://camel

Re: Evaluate JsonPath on string inside a Map

2017-02-08 Thread souciance
Not sure if this is what you are after but I have done it this way: .when(PredicateBuilder.isEqualTo(ExpressionBuilder.languageExpression("jsonpath","$.Status"), "whatyouwantequalto")) The $.Status is a node in the json string. -- View this message in context: http://camel.465427.n5.nabble.c

Re: Evaluate JsonPath on string inside a Map

2017-02-08 Thread Frank Wein
Frank Wein wrote: Hi all, I wonder how I can achieve the following: I want to evaluate a JsonPath predicate in a when() expression on a string, which is inside a Map/MapMessage. If possible, this should be done with the Camel Java DSL. The original message should not be modified, I only want t