this step can be saved if you set xhr.responseType = 'json' before retrieving the resource