camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: issue with jsonFormatting and timestamps
Date Fri, 30 Nov 2012 11:25:07 GMT

Yeah I think we may have a JIRA ticket to improve the json data format
to allow to configure it.

Frankly we should maybe let json default be jackson. And add ways to
configure it, so you can set custom serializers etc.

On Thu, Nov 29, 2012 at 11:12 PM, Marco Mistroni <> wrote:
> Hello all
>    i have a serverside camelapp in which i am exposing an http channel
> which returns json data.
> the problem i have is that one of the object i serialize contains a
> timestamp, and this is how the object is beign serialized
> [{"title":"[video] Tablet Boom: A Derivative
> Play?","description":"","newsItemId":{"ticker":"MCD","publishedDate":1353969000000}}
> i had a look at JsonDataFormat but i cannot plug any serializer in there
> as i am using Jackson, are there any system properties i can set to
> serlialize the timestamp perhaps into a readable string?
> thanks in advance and sorry for bothering
> regards
>  marco

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message