title: How to load local json file in Vue?
body: <p>I have been trying to load data from a local json file.I just want to load the data from the json file and assign it to a variable.I'm trying to do this in Vue.It's may be sample or I am doing something totally wrong.If there is something wrong with my question please tell me.</p>
  
  <p>Thanks in advance.</p>
  
  <p>My js file:</p>
  
  <pre><code>import json from './ecommerce-products.json';
  
   var vm=new Vue({
       el:'#container',
       data(){
           return {
               items:json
           }
       }
  })
  </code></pre>