--- a/modules/org.openbravo.mobile.core/src/org/openbravo/mobile/core/process/JSONProcessSimple.java  2022-01-12 13:05:22.347286000 +0100
+++ b/modules/org.openbravo.mobile.core/src/org/openbravo/mobile/core/process/JSONProcessSimple.java  2022-01-12 13:12:53.649391847 +0100
@@ -45,11 +45,10 @@
   public void exec(Writer w, JSONObject jsonsent) throws IOException, ServletException {
     checkTimeout();
     try {
-      String s = exec(jsonsent).toString();
+      JSONObject response = exec(jsonsent);
       checkTimeout();
-      if (s.startsWith("{") && s.endsWith("}")) {
+      if (response != null) {
         // write only the properties, brackets are written outside.
-        JSONObject response = new JSONObject(s);
         JSONObject contextInfo = getContextInformation();
         if (contextInfo != null) {
           response.put("contextInfo", contextInfo);
