code: public static String jsonObjectToReturnString(JSONObject jsonObj)
      {
          String strReturn = jsonObj.toString();
          
          if (strReturn != null)
              if (!strReturn.startsWith("("))
                  strReturn = "(" + strReturn + ")";
          
          return strReturn;
      }
docs: Convert the json Object to a string that can be eval(ed) in javascript.
  @param jsonObj
  @return