title: How do I save JSON to local text file
body: <p>Say I have a javascript object that looks like this :</p>
  
  <pre><code>  var data = {
        name: "cliff",
        age: "34",
        name: "ted",
        age: "42",
        name: "bob",
        age: "12"
      }
  
  var jsonData = JSON.stringify(data);
  </code></pre>
  
  <p>I stringify it to convert to JSON. How do I save this JSON to a local text file so I can open it, say, in Notepad etc.</p>