title: Save JSON outputted from a URL to a file
body: <p>How would I save JSON outputted by an URL to a file? </p>
  
  <p>e.g from the Twitter search API (this <a href="http://search.twitter.com/search.json?q=hi" rel="noreferrer">http://search.twitter.com/search.json?q=hi</a>)</p>
  
  <p>Language isn't important.</p>
  
  <p>edit // How would I then append further updates to EOF?</p>
  
  <p>edit 2// Great answers guys really, but I accepted the one I thought was the most elegant.</p>