title: Is there a way to import a .json file into js instead of putting it directly in the code?
body: <p>I have a very long bit of json that looks a bit like this:</p>
  <pre><code>{
    &quot;section: [
     [stuff]
    ]
  }
  </code></pre>
  <p>and I'm currently doing this to get it into my js code:</p>
  <pre><code>var obj = {
  
    // {All the stuff from above}
  }
  </code></pre>
  <p>I want to put it into a json file that can be locally imported to a js script to work like something like this:</p>
  <pre><code>var obj = &quot;path/file.json&quot;;
  </code></pre>
  <p>and have it work the same way</p>