title: Load a local json file in JS
body: <p>I need to load a JSON file in my app in JavaScript.</p>
  
  <p>The json file is like this:</p>
  
  <pre><code>{
    "list": [
      {
        "item1": "text",
        "item2": "text",
        "item3": "text",
        "item4": "text"
      },
      {
        "item1": "text",
        "item2": "text",
        "item3": "text",
        "item4": "text"
      },
      ...
    ]
  }
  </code></pre>
  
  <p>I've searched, but I always find solutions using AJAX and PHP, but I don't (and I can't) use any PHP server. So I've looked from the side of jQuery and the <code>getJson()</code> function, but that's didn't work, the JavaScript <code>JSON.parse()</code> didn't work for my file.</p>
  
  <p>So, do any of you know how to load a local file with JavaScript or any other API?</p>