I\'m using this angular code:
$http({ method: \'get\', url: \'json/test.json\', responseType: \"json\" }).success(function(data, status, headers, confi
I don't know which version of AngularJS you are using, but assuming v1.6, then try this:
$http.get("json/test.json").then(function(response) { console.log('success: ' + response.data); }).catch(function(response) { console.log('error: ' + response.data); });