title: How to read JSON file with fetch() in javascript?
body: <p>How can I read local JSON file with fetch function in javascript?
  I have JSON file with some dump data and one function which read JSON file on server.
  For example :</p>
  
  <pre><code>readJson () {
     console.log(this)
     let vm = this
     // http://localhost:8080
     fetch('/Reading/api/file').then((response) =&gt; response.json()).then(json =&gt; {
         vm.users = json
         console.log(vm.users)
     }).catch(function () {
         vm.dataError = true
     })
  }
  </code></pre>
  
  <p>So, What must to do to read local json file in this fetch function?</p>