jQuery.getJSON is failing on local file
<p>I have the following JavaScript/jQuery code:</p>

<pre><code>setInterval(function() {
  $.getJSON('../0.json', function(json) {
    alert("piep");
    $.each(json, function(k, v) {
      $('.' + k).text(v.value);
    });
  });
}, 1000);
</code></pre>

<p>As you see, I'm trying to get a local JSON file and do something with it. To check whether the .getJSON function works, I let it alert me. Which is in fact the problem: it does not alert.</p>

<p>Currently, the page is static, but was part of a Sinatra app. In the app it got it from </p>

<pre><code>'/0.json'
</code></pre>

<p>as the server served it thusly, and it worked.<br>
Hence, I'm infering it having something to do with the "staticness" of the HTML page and the local JSON file.</p>

<p>Is it even possible to get local JSON files?</p>

<p><strong>EDIT:</strong> The JSON file being a local one, the access is being forbidden by the browser.</p>
