camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <>
Subject Re: Usefulness of the current Map or List to String conversion in Camel
Date Mon, 24 Aug 2015 14:37:35 GMT

Actually we could remove toString() conversion at all, as it is useless
from the message handling point of view. Instead we could add the proper
conversions to the jackson or gson modules.


pon., 24.08.2015 o 13:54 użytkownik Aki Yoshida <> napisał:

> Hi,
> Currently, the default conversion from Map or List to String is based
> on the JDK's default serialization. So, if you have a map having
> entries "name"="peach", "taste"="sweet", you get
> {name=peach, taste=sweet}
> This representation is somewhat useless except for the logging
> purpose. This format does not handle special characters and it is not
> interoperable. So, I am wondering if we can instead use JSONObject's
> default serialization so that you will get instead
> {"name":"peach","taste":"sweet"}
> This string is interoperable and can be easily processed.
> If this conversion works directly (we could make it enabled or
> disabled using a property), I think that will be very practical for
> generic map and list objects.
> Comments appreciated.
> regards, aki
Henryk Konsek

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message