You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2014/12/18 07:38:31 UTC
[29/50] [abbrv] stratos git commit: Removing root element from JSON
response objects in rest api
Removing root element from JSON response objects in rest api
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/a91b4f82
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/a91b4f82
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/a91b4f82
Branch: refs/heads/master
Commit: a91b4f82b0178ca688b83871807bd2b0549ffa13
Parents: 5ce7bac
Author: Imesh Gunaratne <im...@apache.org>
Authored: Wed Dec 17 14:19:50 2014 +0530
Committer: Udara Liyanage <ud...@wso2.com>
Committed: Thu Dec 18 12:06:58 2014 +0530
----------------------------------------------------------------------
.../src/main/webapp/api/WEB-INF/cxf-servlet.xml | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/a91b4f82/components/org.apache.stratos.rest.endpoint/src/main/webapp/api/WEB-INF/cxf-servlet.xml
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/webapp/api/WEB-INF/cxf-servlet.xml b/components/org.apache.stratos.rest.endpoint/src/main/webapp/api/WEB-INF/cxf-servlet.xml
index 7543f7c..a487594 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/webapp/api/WEB-INF/cxf-servlet.xml
+++ b/components/org.apache.stratos.rest.endpoint/src/main/webapp/api/WEB-INF/cxf-servlet.xml
@@ -101,6 +101,7 @@
<bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
<property name="supportUnwrapped" value="true"/>
<property name="serializeAsArray" value="true"/>
+ <property name="dropRootElement" value="true" />
<property name="dropCollectionWrapperElement" value="true"/>
<property name="arrayKeys">
<list>