title: Converting JSONArray to String in javascript to send to java
body: <p>I am working with an android app that uses phonegap. The java calls some HTML that displays a web page and the HTML uses javascript for functions. Now in the javascript I make a JSON call using parameters from the HTML. The problem is I need to send this JSONArray back to the Java class. However, when I use </p>
  
  <pre><code>JavaActivity.parseJson(jsonArray.toString());
  </code></pre>
  
  <p>(where jsonArray is the JSONArray and parseJson is the method in the java activity)</p>
  
  <p>the string that it sends looks something like this:</p>
  
  <pre><code>[{Object:Object}, {Object:Object}, {Object:Object}, .....]
  </code></pre>
  
  <p>What am I doing wrong or is there another way to convert this String, or just send the JSONArray directly?</p>