title: Camel routing based on object value
body: <p>I have two simple Camel routes working for writing to a jms queue and reading from it. I am putting a serialized object to the queue. I am able to deserialize it and covert it to json successfully.</p>
  
  <p>Route for writing:</p>
  
  <pre><code>from("direct:message").to("jms:myqueu")
  </code></pre>
  
  <p>My route for reading:</p>
  
  <pre><code>from("jms:myqueu")
  .marshal()
  .json(JsonLibrary.Gson).
  .to("file://cc")
  </code></pre>
  
  <p>Now i want to check a field within the object and route based on that.<strong>Also that field should not be part of the final json.</strong></p>
  
  <p>Can i check the value within the object and route based on that( like write to different files?). I can add the annotation in the pojo to avoid the field in final json</p>
  
  <p>I thought of converting object to json, and then sending to queue. Then i can use jsonpath for conditional routing. But then how can i omit a field from final json?</p>