Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00B3B10575 for ; Thu, 25 Apr 2013 20:13:26 +0000 (UTC) Received: (qmail 48806 invoked by uid 500); 25 Apr 2013 20:13:25 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 48720 invoked by uid 500); 25 Apr 2013 20:13:25 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 48712 invoked by uid 99); 25 Apr 2013 20:13:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2013 20:13:25 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [135.245.0.39] (HELO ihemail4.lucent.com) (135.245.0.39) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2013 20:13:17 +0000 Received: from us70uusmtp3.zam.alcatel-lucent.com (h135-5-2-65.lucent.com [135.5.2.65]) by ihemail4.lucent.com (8.13.8/IER-o) with ESMTP id r3PKCsVp016399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 25 Apr 2013 15:12:54 -0500 (CDT) Received: from US70TWXCHHUB04.zam.alcatel-lucent.com (us70twxchhub04.zam.alcatel-lucent.com [135.5.2.36]) by us70uusmtp3.zam.alcatel-lucent.com (GMO) with ESMTP id r3PKCrjq019385 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 25 Apr 2013 16:12:53 -0400 Received: from US70UWXCHMBA01.zam.alcatel-lucent.com ([169.254.7.191]) by US70TWXCHHUB04.zam.alcatel-lucent.com ([135.5.2.36]) with mapi id 14.02.0247.003; Thu, 25 Apr 2013 16:12:53 -0400 From: "Calvert, Zach (Zach)** CTR **" To: "users@camel.apache.org" Subject: RE: Setting Default JSON Provider Thread-Topic: Setting Default JSON Provider Thread-Index: Ac5B6ckqU+5MOs6oRnKg+dZPWaI8agAB5IBQ Date: Thu, 25 Apr 2013 20:12:53 +0000 Message-ID: <27C82DB4AA28D94C814599E05488E0610F680939@US70UWXCHMBA01.zam.alcatel-lucent.com> References: <27C82DB4AA28D94C814599E05488E0610F6808C9@US70UWXCHMBA01.zam.alcatel-lucent.com> In-Reply-To: <27C82DB4AA28D94C814599E05488E0610F6808C9@US70UWXCHMBA01.zam.alcatel-lucent.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [135.5.27.16] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.57 on 135.245.2.39 X-Virus-Checked: Checked by ClamAV on apache.org Bah, solved it. =09 =09 ... ... -----Original Message----- From: Calvert, Zach (Zach)** CTR ** [mailto:zcalvert@motive.com]=20 Sent: Thursday, April 25, 2013 2:18 PM To: users@camel.apache.org Subject: Setting Default JSON Provider I have a route and a bean configured: How can I set this JSON Provider as my default provider for the cxfbean out= put of a function with the header like: @GET @Path("/sample") @Produces({"application/json"}) public MyTest getSample() { I get MyTest output, but it is not using the jsonProvider I want. The form= at comes back as {"myTest":{"id":"3e1fd608-130c-46c3-8e13-0bc93182f6d2"}} when I want the root element removed and just get the {"id":"3e1fd608-130c-= 46c3-8e13-0bc93182f6d2"} as the response body. Thanks, Zach Calvert