Parse XML from Axios response, pushing to Vue data array : <p>In my Vue app, I get a XML file with Axios and use parseString to parse XML as JSON. I then need to pass the <code>result</code> to Vue data (this.events). My console log shows the parsed XML as Json, but I cannot push to Vue data inside this function.</p>

<pre><code>var parseString = require('xml2js').parseString;

axios.get(`http://url.to/events.xml`)
  .then(response =&gt; {
    parseString(response.data, function (err, result) {
      console.log(result); // returns a json array
      this.events = result // nothing happens
    });        
  })
}
</code></pre>

<p>How to store my JSON array to this.data in Vue?</p>
