camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-9605) Allow camel-gson to unmarshall more type by default
Date Mon, 15 Feb 2016 18:32:18 GMT

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

Claus Ibsen resolved CAMEL-9605.
--------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.17.0

Thanks for the PR

> Allow camel-gson to unmarshall more type by default
> ---------------------------------------------------
>
>                 Key: CAMEL-9605
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9605
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-gson
>            Reporter: Xavier Fournet
>            Assignee: Claus Ibsen
>             Fix For: 2.17.0
>
>
> By default camel json 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:
> {code:xml}
> <unmarshal>
>     <json library="Gson" unmarshalTypeName="java.lang.Object"/>
> </unmarshal>
> {code}
> You should be able to unmarshall any type of json document with the default setting,
eg:
> {code:xml}
> <unmarshal>
>     <json library="Gson"/>
> </unmarshal>
> {code}



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

Mime
View raw message