Its returning an output stream that is streamed as byte arrays.
If you want a string then its easy to have it type converted to that
which can happen implicit/automatic.

So yes its by design.



On Thu, Mar 15, 2018 at 11:36 AM, Sebastiaan van Erk
<[email protected]> wrote:
> Hi,
>
> I used the JSON data format with Jackson to marshal a message to JSON.
>
> The resulting message body turns out to be a byte array (byte[]).
>
> I was wondering if this is a bug or this is intended behavior. Why
> doesn't it return a String?
>
> Best regards,
> Sebastiaan



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to