Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8685E183DE for ; Mon, 15 Feb 2016 18:03:18 +0000 (UTC) Received: (qmail 19712 invoked by uid 500); 15 Feb 2016 18:03:18 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 19663 invoked by uid 500); 15 Feb 2016 18:03:18 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 19649 invoked by uid 99); 15 Feb 2016 18:03:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2016 18:03:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 40BF02C1F57 for ; Mon, 15 Feb 2016 18:03:18 +0000 (UTC) Date: Mon, 15 Feb 2016 18:03:18 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9605) Allow camel-gson to unmarshall more type by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9605?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1514= 7653#comment-15147653 ]=20 ASF GitHub Bot commented on CAMEL-9605: --------------------------------------- GitHub user xfournet opened a pull request: https://github.com/apache/camel/pull/841 CAMEL-9605 update default unmarshall type to java.lang.Object instead= =E2=80=A6 =E2=80=A6 of java.util.Map to be able to unmarshall any valid Json docu= ment with the default configuration of Gson umarshaller You can merge this pull request into a Git repository by running: $ git pull https://github.com/xfournet/camel CAMEL-9605 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/841.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 #841 =20 ---- commit 274f9b6ddb9fc9031aa0364a8519d55e7da5d731 Author: Xavier Fournet Date: 2016-02-15T18:02:36Z CAMEL-9605 update default unmarshall type to java.lang.Object instead o= f java.util.Map to be able to unmarshall any valid Json document with the d= efault configuration of Gson umarshaller ---- > 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 > > 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 unma= rshalTypeName which is not very convenient, eg: > {code:xml} > > > > {code} > You should be able to unmarshall any type of json document with the defau= lt setting, eg: > {code:xml} > > > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)