Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-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 1D7CD10847 for ; Wed, 8 Jan 2014 16:29:17 +0000 (UTC) Received: (qmail 87443 invoked by uid 500); 8 Jan 2014 16:29:13 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 86968 invoked by uid 500); 8 Jan 2014 16:29:12 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 86958 invoked by uid 99); 8 Jan 2014 16:29:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 16:29:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tiderianconsulting@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 16:29:06 +0000 Received: by mail-wi0-f172.google.com with SMTP id en1so5758317wid.5 for ; Wed, 08 Jan 2014 08:28:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=zQ3ayRznBA2U+vv7C588Ab1vTPDIA3L1zGiO+0L1Klc=; b=z5JQPouISrHsvjYInD7rGyoOooTB/OESGyFzwAzSx6Pg94SkVW/mXKGEt5pYiDSGhL q0axCXr/hIBHhWZjP8WIcHsADM/4pmKvGp31adwr7dwaiKf2P5SFLP0bM2pnjv8w+Nhu lKge8ayMh8a6KaKDEkXs0CKs/QZglY8qYFsRp/Tw6ipQi9ZGDtin36fv/BYVMYVuXpRo Y1Zsbuq/6+qgP29X3DAnOp0tlxUcexG9xEN3cISJzObgv8M+kNpaPGMx1lGmdsNbOESF p2PK8P4arnVaf/qNupYGYgETxT571lVOBsoUjcIjOeGFIkw0TcA2HeGQ5ARTRg92QXAG zC7Q== MIME-Version: 1.0 X-Received: by 10.180.104.106 with SMTP id gd10mr21836767wib.47.1389198525159; Wed, 08 Jan 2014 08:28:45 -0800 (PST) Sender: tiderianconsulting@gmail.com Received: by 10.194.41.161 with HTTP; Wed, 8 Jan 2014 08:28:45 -0800 (PST) Date: Wed, 8 Jan 2014 16:28:45 +0000 X-Google-Sender-Auth: 6-zwB3QZ6wA4voh8lZBMby64NSE Message-ID: Subject: Passing Enum in JSON Body From: Graeme Dougal To: users@cxf.apache.org Content-Type: multipart/alternative; boundary=f46d044281529d5f1c04ef77fcc3 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044281529d5f1c04ef77fcc3 Content-Type: text/plain; charset=ISO-8859-1 Hi I have a rest service with the following path /element/{id}/elementStatus I'm calling PUT on this URI in order to change the elementStatus of the element with the supplied {id} I have a java Enum ElementStatus that I want to pass in the request body as JSON, {"elementStatus":"ACTIVE"} But cant get this to work... using the JacksonJSONProvider and annotating a factory method with @JSONProducer the String it gets in that method is simply { (one single open brace) Any ideas ? Cheers Graeme --f46d044281529d5f1c04ef77fcc3--