Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A3FE17FAF for ; Thu, 30 Apr 2015 16:39:09 +0000 (UTC) Received: (qmail 33544 invoked by uid 500); 30 Apr 2015 16:39:07 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 33511 invoked by uid 500); 30 Apr 2015 16:39:07 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 33401 invoked by uid 99); 30 Apr 2015 16:39:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2015 16:39:07 +0000 Date: Thu, 30 Apr 2015 16:39:06 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-5814) Update some of JSONProvider property default values to make a better JSON output 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/CXF-5814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin updated CXF-5814: ---------------------------------- Fix Version/s: (was: 3.1.0) 3.1.1 > Update some of JSONProvider property default values to make a better JSON output > -------------------------------------------------------------------------------- > > Key: CXF-5814 > URL: https://issues.apache.org/jira/browse/CXF-5814 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Reporter: Sergey Beryozkin > Assignee: Sergey Beryozkin > Priority: Minor > Fix For: 3.1.1 > > > By default CXF JSONProvider: > 1. supports namespaces > 2. ignores XmlType only elements > 3. does not drop a root element > 1. is only useful when a client and server exchange JSON data and use Jettison-based providers, most likely we are talking about CXF client to CXF server calls. Technically speaking JSON payloads with namespace prefixes is invalid, it can be parsed but it is not correct > 2. can by bypassed by using JAXBElement > 3. Keeping the root element produces a sub-optimal JSON -- This message was sent by Atlassian JIRA (v6.3.4#6332)