Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at XMLHttpRequest.xhr.onreadystatechange
Based on other responses on Stack Overflow, it seems that I should not need to parse the JSON file since it is already parsed. However, I am unsure how to handle it without parsing.
I have been trying to troubleshoot this issue, but I am having trouble understanding how to resolve it.
Currently, I am using lottie-web in a project and need to set the animation parameters on an object in order to pass them as a parameter later.
This is part of my component:
However, when I run this line:
Lottie.loadAnimation(this.animationParams);
I encounter the following error:
Based on other responses on Stack Overflow, it seems that I should not need to parse the JSON file since it is already parsed. However, I am unsure how to handle it without parsing.
The content of the JSON file can be found here: .
How can I load this JSON file without parsing it?
By https://javascripter.space/questions/error-message-in-vuejs-json-parsing-error-detected-due-to-an-unexpected-lt-symbol-at-the-beginning