title: How to use requiereJS to import local imput json file?
body: <p>I want to load a json from local input file to my js script.</p>
  
  <p>The json is imported and I can get the file object, but I can't properly get the JSON and parse it to a JS Object</p>
  
  <p>I tried to use RequiereJS which seems to be the best and quickest solution but I can't make this line to work</p>
  
  <pre><code>require(['json!someFile.json'], function(data){
  
  })
  </code></pre>
  
  <p>Here is my input in HTML :</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="file" class="custom-file-input" onchange="loadFile(this.file) accept="application/json"&gt;
  </code></pre>
  
  <p>And here my js file :</p>
  
  <pre><code>function loadFile(file) {
      var myJson;
      var url = URL.createObjectURL(file);
      require(['json!'+url+''], function(data){
          myJson = data;
      }
  }
  </code></pre>
  
  <p>Or this : </p>
  
  <pre><code>require(['json!'+file+''], function(data){
  </code></pre>