EkoLabs / aframe-spritesheet-component

Animated spritesheet support for A-Frame
Other
34 stars 5 forks source link

JSON decode error when using url #12

Open netgfx opened 3 years ago

netgfx commented 3 years ago

JSON.parse: unexpected character at line 1 column 2 of the JSON data

When I print the data returned from the file loader it is ArrayBuffer { byteLength: 3423 } So this is why the JSON.parse is failing.

I'm using a url for data-url e.g: https://somesite.com/data.json

and the image as an a-asset id #img