title: JSON - Blender & ThreeJS - Unexpected token < in JSON at position 0
body: <p>I have exported a 3D model from Blender using the io_three addon.</p>
  
  <p>Now I am trying to load this model into ThreeJS using code like this. </p>
  
  <pre><code>import React, { Component } from 'react';
  import * as THREE from 'three';
  var loader = new THREE.JSONLoader();
  loader.load('./making_a_face10.json', handle_load);
  </code></pre>
  
  <p>I am consistently getting the same error message.</p>
  
  <pre><code>Unexpected token &lt; in JSON at position 0
  </code></pre>
  
  <p>I have tried using the THREE.ObjectLoader() and also this option <a href="https://github.com/tweedegolf/parsed-model" rel="nofollow noreferrer">https://github.com/tweedegolf/parsed-model</a>, but it keeps saying error in position 0 of JSON.</p>
  
  <p>As a side note, I can access the JSON like this:</p>
  
  <pre><code>var JSONdata = require('./making_a_face10.json');
  </code></pre>
  
  <p>That does expose data inside the JSON, but I want the ThreeJS loader to work. </p>
  
  <p>Then I found this example <a href="https://threejs.org/examples/#webgl_loader_json_blender" rel="nofollow noreferrer">https://threejs.org/examples/#webgl_loader_json_blender</a> and when I went to view the source code it shows that the 'model' is being imported as a .js file??, i.e. they are loading it like this:</p>
  
  <pre><code>loader.load( 'models/animated/monster/monster.js', function ( geometry, materials )...
  </code></pre>
  
  <p>There is ample material to explain what I want to do but none of it points to loading the model as a .js file.</p>
  
  <p>two more notes - the format of my JSON file looks extremely like this <a href="https://github.com/mrdoob/three.js/blob/master/examples/models/animated/monster/monster.js" rel="nofollow noreferrer">https://github.com/mrdoob/three.js/blob/master/examples/models/animated/monster/monster.js</a> and I am running a local server using <code>npm start</code></p>
  
  <p>If any whiz kid could help me out I would be extremely grateful.</p>
  
  <p><strong>SOLVED</strong></p>
  
  <p>In the React project folder. The .JSON file was in my <code>/src</code> folder. It should have been in my <code>/public</code> folder. </p>