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 AFB201852D for ; Mon, 15 Feb 2016 18:32:18 +0000 (UTC) Received: (qmail 71445 invoked by uid 500); 15 Feb 2016 18:32:18 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 71398 invoked by uid 500); 15 Feb 2016 18:32: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 71327 invoked by uid 99); 15 Feb 2016 18:32: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:32:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2F6B12C1F5C for ; Mon, 15 Feb 2016 18:32:18 +0000 (UTC) Date: Mon, 15 Feb 2016 18:32:18 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (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: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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} > > > > {code} > You should be able to unmarshall any type of json document with the default setting, eg: > {code:xml} > > > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)