I think you can use camel-jsonpath to perform xpath like to evaluate the
message and based on the evaluation you can select one model over the other.

On Fri, Mar 3, 2017 at 1:02 PM, Mark Webb [via Camel] <
[email protected]> wrote:

> I have an incoming route that will be processing a bunch of different JSON
> message types, does the Camel Data Format subsystem support a way to
> determine which type a JSON message is and then unmarshal the incoming
> string to the proper object?
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/handle-multiple-JSON-
> formats-in-same-route-tp5794737.html
> To start a new topic under Camel - Users, email
> [email protected]
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/handle-multiple-JSON-formats-in-same-route-tp5794737p5794745.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to