title: Access Rhino's native JSON.Stringify from Java
body: <p>Is there a cleaner way to get the JSON representation of a Javascript object than with the following kludge?</p>
  
  <pre class="lang-js prettyprint-override"><code>System.out.println(((ScriptableObject) scope).callMethod(
      cx, (Scriptable) scope.get("JSON", scope), 
      "stringify", new Object[]{jsObject}));
  </code></pre>
  
  <p>Where jsObject is the ScriptableObject I want to stringify.</p>