You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/07 17:01:21 UTC

[jira] [Commented] (CAMEL-10029) Allow camel-jackson to unmarshall more type by default

    [ https://issues.apache.org/jira/browse/CAMEL-10029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318878#comment-15318878 ] 

ASF GitHub Bot commented on CAMEL-10029:
----------------------------------------

GitHub user adioss opened a pull request:

    https://github.com/apache/camel/pull/1018

    CAMEL-10029 update default unmarshall type to java.lang.Object instea…

    …d of java.util.Map to be able to unmarshall any valid Json document with the default configuration of Jackson unmarshaller

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/adioss/camel CAMEL-10029

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1018.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1018
    
----
commit bdced2fe297720fd3eeccc9e5901efb5a35dcac5
Author: apailhes <ad...@adioss.fr>
Date:   2016-06-07T16:59:01Z

    CAMEL-10029 update default unmarshall type to java.lang.Object instead of java.util.Map to be able to unmarshall any valid Json document with the default configuration of Jackson unmarshaller

----


> Allow camel-jackson to unmarshall more type by default
> ------------------------------------------------------
>
>                 Key: CAMEL-10029
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10029
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jackson
>    Affects Versions: 2.17.1
>            Reporter: Adrien PAILHES
>
> By default camel jackson unmarshaller accept to read only json which are map (eg the json document begin with "{" ). If you want to be able to umarshal more json document like simple string or list you have to specify the unmarshalTypeName which is not very convenient, eg:
> {noformat}
> <unmarshal>
>     <json library="Jackson" unmarshalTypeName="java.lang.Object"/>
> </unmarshal>
> {noformat}
> You should be able to unmarshall any type of json document with the default setting, eg:
> {noformat}
> <unmarshal>
>     <json library="Jackson"/>
> </unmarshal>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)