I've been looking for how to solve this error but i didn't understand very well how t fix it.
I'm working with lottie-web on a project and i have to set the params of the animation on an object to pass it as a parameter later.
My component:
import Lottie from './../../node_modules/lottie-web/build/player/lottie';
export default {
  name: 'Illustration',
  mounted() {
    this.animationParams = {
      container: document.getElementById('animation'),
      renderer: 'svg',
      loop: 'true',
      autoplay: 'false',
      path: '/src/data/animation.json',
    };
    Lottie.loadAnimation(this.animationParams);
  },
  data() {
    return {
      animationParams: {
      },
    };
  },
but when this line is executed:
    Lottie.loadAnimation(this.animationParams);
i get this error:
Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at XMLHttpRequest.xhr.onreadystatechange
what i have seen on other answers here in Stackoverflow is that i don't have to parse the json since it's already parsed, but i don't know how to NOT parse it.
here's what's inside the json file: http://myjson.com/s0kn6.
how do i have to load that json file without parsing it?