var jsonURL='../../json/xx.json'
var myApp = angular.module('myApp',[]);
myApp.controller('loaddata_traceroute', ['$scope','$http',function($scope, $http){
$http.get(jsonURL).success(function(data) {
$scope.datapoints_traceroute = data[0].abc[0].base-uri;
})
}]);
The code snippet above is used to parse JSON data successfully. However, when attempting to extract the ".base-uri" property from the data, an error occurs with the message "ReferenceError: uri is not defined". This could be due to a reserved keyword causing issues.
Are there any alternative solutions or workarounds to address this problem?