title: Passing a JavaScript object using addJavascriptInterface() on Android
body: <p>Is it possible to pass a JavaScript object from JavaScript to Java using addJavascriptInterface()? Something along these lines:</p>
  
  <pre><code>var javaScriptObject = {"field1":"string1", "field2":"string2"};
  JavaScriptInterface.passObject(javaScriptObject);
  </code></pre>
  
  <p>How would such a call be captured on the Java side? I have no problem setting up the interface to send a string, but when I send an object, I receive null on the Java end.</p>