Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0B3C32009F9 for ; Mon, 23 May 2016 16:49:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0A158160A0E; Mon, 23 May 2016 14:49:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4559D160A05 for ; Mon, 23 May 2016 16:49:48 +0200 (CEST) Received: (qmail 27583 invoked by uid 500); 23 May 2016 14:49:47 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 6807 invoked by uid 99); 23 May 2016 14:38:13 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.232 X-Spam-Level: ** X-Spam-Status: No, score=2.232 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_FAIL=0.919, URI_HEX=1.313] autolearn=disabled Date: Mon, 23 May 2016 07:38:09 -0700 (MST) From: Patrick696 To: users@camel.apache.org Message-ID: <1464014289483-5782958.post@n5.nabble.com> Subject: Help w/ rest response JSON binding with Jackson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 23 May 2016 14:49:49 -0000 Hi, I am having a heck of a time figuring out how to return raw json from my camel rest routes. If I do something like: .marshal(format) .convertBodyTo(String.class) I always get something like: "{\"status\":200,\"error\":success,\"data\":...}" If I don't add .convertBodyTo(String.class), I get the binary inputstream from my response POJO. I just want plain old JSON as a response. Any ideas what I am missing here? Thanks, Patrick -- View this message in context: http://camel.465427.n5.nabble.com/Help-w-rest-response-JSON-binding-with-Jackson-tp5782958.html Sent from the Camel - Users mailing list archive at Nabble.com.