# Json load error

**URL:** <https://discourse.threejs.org/t/json-load-error/19101>\
**Category:** Questions\
**Tags:** editor\
**Created:** [September 24, 2020, 4:24pm UTC](https://discourse.threejs.org/t/json-load-error/19101 "2020-09-24T16:24:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![haho](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@haho](https://discourse.threejs.org/u/haho)\
**Post date:** [September 24, 2020, 4:24pm UTC](https://discourse.threejs.org/t/json-load-error/19101/1 "2020-09-24T16:24:51Z")

</div>

Hi,

when i convert a .obj- file (waverfront, as described) to json-format via three js-editor,

the THREE.BufferGeometryLoader always produces following error:

Cannot read property ‘index’ of undefined’

can anybody help ?

thanks  
hartwig

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [September 24, 2020, 5:49pm UTC](https://discourse.threejs.org/t/json-load-error/19101/2 "2020-09-24T17:49:40Z")

</div>

Unfortunately, I can’t reproduce. I’ve used the following OBJ file from the official repository and imported it into the editor. After that, I selected the mesh and clicked on `Export Geometry`. The resulting JSON could also be imported in the editor again.

> <https://github.com/mrdoob/three.js/blob/6a57d82be0459321860c08abb9cfbfa023fc940f/examples/models/obj/tree.obj>

Do you mind sharing the OBJ file that produces the error?

---

<div class="post-metadata">

**Author:** ![haho](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@haho](https://discourse.threejs.org/u/haho)\
**Post date:** [September 24, 2020, 6:24pm UTC](https://discourse.threejs.org/t/json-load-error/19101/3 "2020-09-24T18:24:00Z")

</div>

[BLENDER\_DRACHE\_KLEIN.obj](https://discourse.threejs.org/uploads/short-url/t9CRvMuJBnupzSl6kBeBhs5ehHj.obj) (2.0 MB)

this is the obj-file as exported from blender

thank you

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [September 25, 2020, 8:42am UTC](https://discourse.threejs.org/t/json-load-error/19101/4 "2020-09-25T08:42:19Z")

</div>

Still unable to reproduce. I did the same process like mentioned above just with your asset. This is the resulting JSON: [geometry.json.zip](https://discourse.threejs.org/uploads/short-url/zPVCHn6jCTZwSJ7wWmEb605kzWJ.zip) (682.0 KB)

I can import it without issue in the editor back.

---

<div class="post-metadata">

**Author:** ![haho](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@haho](https://discourse.threejs.org/u/haho)\
**Post date:** [September 25, 2020, 1:30pm UTC](https://discourse.threejs.org/t/json-load-error/19101/5 "2020-09-25T13:30:09Z")

</div>

Thank you vers much-  
Now it’s working !
