title: show JSON in new window
body: <p>I have a problem with json. I'd like to display the result of my form in the new browser window in JSON. (When user fills all fields in the form, button becomes enabled and shows JSON in specified format (I did it)). I translated it in JSON but dunno how to output it...I'm thinking of create new html page and do window.open on button on 1st page, but then it doesn't read data from 1st page which user entered. Or should I save it somehow in JSON file and then read it from other page?
  For example:</p>
  
  <pre><code>&lt;form name="form" ng-controller="MyCtrl"&gt;
  &lt;label&gt; &lt;b&gt; * Date: &lt;/b&gt; &lt;/label&gt; &lt;input type="datetime-local" ng-model="date"        name="date" onkeyup="changeButtonStatus()" onchange="changeButtonStatus()" required&gt;    &lt;/input&gt;
  &lt;button type="submit" id="btn" class="btn" disabled="disabled"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I have some form with date field and button:</p>
  
  <p>I can easily get JSON of date field by {{date | json}} on the same page, but I just want to output it in new browser window. How can I do this? Please help me with some tips. Thanks.</p>