Open netgfx opened 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.
ArrayBuffer { byteLength: 3423 }
I'm using a url for data-url e.g: https://somesite.com/data.json
https://somesite.com/data.json
and the image as an a-asset id #img
a-asset
#img
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