commit | 15a9ecbc86c794560e9f7b39f3781cb0d63e4ac1 | [log] [tgz] |
---|---|---|
author | Valentin Valchev <vvalchev@apache.org> | Tue Sep 13 05:58:32 2011 +0000 |
committer | Valentin Valchev <vvalchev@apache.org> | Tue Sep 13 05:58:32 2011 +0000 |
tree | b1c0a22f2d9502af060eb67771d98ae5dd120ce7 | |
parent | a0fcfced75e8fa2f2681748e5de05e7e8952ce9c [diff] |
Really fixed FELIX-2889 : Invalid JSON content in http response after starting or stopping a bundle. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1170053 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java index 46168e6..8ac69d0 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
@@ -355,8 +355,8 @@ // write the state only resp.setContentType( "application/json" ); //$NON-NLS-1$ resp.setCharacterEncoding( "UTF-8" ); //$NON-NLS-1$ - resp.getWriter().print("{fragment:" + isFragmentBundle(bundle) // //$NON-NLS-1$ - + ",stateRaw:" + bundle.getState() + "}"); //$NON-NLS-1$ //$NON-NLS-2$ + resp.getWriter().print("{\"fragment\":" + isFragmentBundle(bundle) // //$NON-NLS-1$ + + ",\"stateRaw\":" + bundle.getState() + "}"); //$NON-NLS-1$ //$NON-NLS-2$ return; } }