2

I have a JSON object and I would like to filter the value of a particular value using Camel.

This is an example attribute of my JSON object:

{
  Animals: Water/Fish  
}

There are other possible values such as Land/Horse and I would like to filter the values by the types(For eg, Water, Land etc) and the routing of the endpoints is based on these types.

Currently, the routing on my XML file looks like this:

<route>
<description>Example </description>
<from uri="testing:resource.A" />


<to uri="ref:specFile"/>
<to uri="testing.transformed.Result">
</route>

How do I filter the Animal types? Specifically, how do I get the values before the "/"?

Kenster
  • 23,465
  • 21
  • 80
  • 106
purplewind
  • 331
  • 10
  • 26

0 Answers0