Hi Look at the jsonpath project and the syntax it uses, its not a Camel question you have but a json path question.
On Wed, Mar 15, 2017 at 9:55 AM, partha006 <[email protected]> wrote: > My route to filter the json classname with class is > > <route> > <from uri="file:D:/inputFolder/jsonpath"/> > <choice> > <when> > <jsonpath>$..com.mycompany.app10.Person</jsonpath> > <to uri="file:D:/inputFolder/jsonpath/output"/> > </when> > </choice> > </route> > > My sample input is > > {"com.mycompany.app10.Person":{"firstName":"Gregory","surname":"Smith","type":"FAMILY"}} > > In my route , if i use "<jsonpath>$..Person</jsonpath>" in the json path and > my input is > > {"Person":{"firstName":"Gregory","surname":"Smith","type":"FAMILY"}} > > It is working fine!! > > But class with path is not working , is there any workaround for this. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-jsonpath-to-filter-classname-with-path-tp5795503.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
