Hi Gordon I don't think your json is valid[1], once that's sorted try this unit test[2] which shows how to achieve what you want.
[1] http://jsonlint.com/ The following works, I added some quotes, you'll have to check if your format is supposed to be supported. { "ts": "Timestamp(1415124334, 1)", "op": "i", "ns": "test.products", "o": { "_id": "ObjectId('5459156e7950e8c18c094992')", "item": "card", "qty": 15 } } [2] https://github.com/apache/camel/blob/master/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathCBRTest.java Taariq On Mon, Nov 24, 2014 at 8:35 PM, gmh <gordon...@gmail.com> wrote: > Claus, > I tried that approach first and did not work. > I took the maven java dsl archetype and changed the route to point to the > .json file and then added the additional route. > Do I need to add any other configurations or libraries? > Gordon > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-to-read-json-in-a-file-and-use-jsonpath-tp5759546p5759559.html > Sent from the Camel - Users mailing list archive at Nabble.com. >