Expression language support for JSON
In Mule 3, I can have a string payload that consists of JSON and I can do expression language operations on it.
For example,
Code:
expression="#[json:job/state]"
retrieves the job state and uses it for a routing descision.
In Spring Integration, I have found that the expression language only seems to support java objects,
e.g.
Code:
exchange-name-expression="payload"
If payload is a string, then I can only to String operations on it.
The use case I have is that I want to dynamically route messages to a given exchange (in AMQP) based
on the message contents.
Is there support for this?
Obviously in my service, I could convert the JSON string to a Java JSONObject, but then the outbound adapter would have to serialize back.
Any other ideas would be welcome.
Earl