title: How to import local JSON into React ES6
body: <p>After trying to use json-loader with no success, I cant load an array of JSON into my react code, using webpack 1.4 and babel, if that makes a difference.</p>
  
  <pre><code>import data from '../data/item-types.json';
  </code></pre>
  
  <p>Returns an empty object with no errors</p>
  
  <pre><code>import data from 'json-loader!../data/item-types.json';
  </code></pre>
  
  <p>Gives an error message </p>
  
  <pre><code>ERROR in ./~/json-loader!./src/data/item-types.json
  Module build failed: SyntaxError: Unexpected token ; in JSON at position 12
      at Object.parse (native)
      at Object.module.exports (...\node_modules\json-loader\index.js:7:48)
   @ ./src/components/search.js 25:17-63
  </code></pre>
  
  <p>The JSON is an array, 100% valid when pasted in an online JSON editor.
  I've also tried :</p>
  
  <pre><code>const data = require('../data/item-types.json');
  </code></pre>
  
  <p>That gives me an empty object</p>
  
  <p>and</p>
  
  <pre><code>const data = require('json!../data/item-types.json');
  </code></pre>
  
  <p>Gives me the same error as above</p>
  
  <p>Here's a snippet of the data :</p>
  
  <pre><code>["a","b"]
  </code></pre>