camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gilday (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-1664) JSON DataFormat using Jackson
Date Wed, 03 Jun 2009 08:42:50 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-1664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Gilday updated CAMEL-1664:
---------------------------------

    Description: 
Camel currently allows marshaling with JSON using XStream.  Attached is a complementary alternative
using Jacskon (http://jackson.codehaus.org/). It offers a similar feature set, but would help
those already using the library (such as already having Jackson/JAXB annotated classes). 
The implementation uses the (marginally) slower object mapper rather than the streaming API
(to use that a Processor might be more appropriate as you need full control over the class
to serialise).  

See http://www.nabble.com/JSON-DataFormat-using-Jackson-td23802406.html

Due to the fact there is already a "json" node in the DSL there needs to be a way to choose
which impl to use.  Proposals so far are:
* Add a new method .marhsal.jackson() -- a little confusing as users may not know what jackson
is 
* Add an enum to choose e.g .marshal.json(JsonTypes.JACKSON) -- would need to choose a default
impl

  was:Camel currently allows marshaling with JSON using XStream.  Attached is a complementary
alternative using Jacskon (http://jackson.codehaus.org/). It offers a similar feature set,
but would help those already using the library (such as already having Jackson/JAXB annotated
classes).  The implementation uses the (marginally) slower object mapper rather than the streaming
API (to use that a Processor might be more appropriate as you need full control over the class
to serialise).  


> JSON DataFormat using Jackson
> -----------------------------
>
>                 Key: CAMEL-1664
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1664
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: Future
>            Reporter: Martin Gilday
>            Priority: Minor
>         Attachments: camel-jackson.zip
>
>
> Camel currently allows marshaling with JSON using XStream.  Attached is a complementary
alternative using Jacskon (http://jackson.codehaus.org/). It offers a similar feature set,
but would help those already using the library (such as already having Jackson/JAXB annotated
classes).  The implementation uses the (marginally) slower object mapper rather than the streaming
API (to use that a Processor might be more appropriate as you need full control over the class
to serialise).  
> See http://www.nabble.com/JSON-DataFormat-using-Jackson-td23802406.html
> Due to the fact there is already a "json" node in the DSL there needs to be a way to
choose which impl to use.  Proposals so far are:
> * Add a new method .marhsal.jackson() -- a little confusing as users may not know what
jackson is 
> * Add an enum to choose e.g .marshal.json(JsonTypes.JACKSON) -- would need to choose
a default impl

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message