+1

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.

Cheers!

pon., 24.08.2015 o 13:54 użytkownik Aki Yoshida <elak...@gmail.com> 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
http://about.me/hekonsek

Reply via email to