简体   繁体   中英

Filtering through data in JSON file

I have access to some JSON data that has some headers that are irrevelant to me. When I access the JSON through my App, these extra 3 fields are showing up as blank entries(see image) How can I filter this data feed at the scope level to only get access to the data in the middle {}, bkev_name etc(list of 23 properties).

在此处输入图片说明

    .controller('ListController', ['$scope', '$http', '$state','$cordovaBluetoothSerial', '$window', '$location', function($scope, $http, $state, $cordovaBluetoothSerial, $window, $location) {
      $http.get('js/12137.json').success(function(data) {
       $scope.orders = data;

将其模型设置为适当的数组,例如

$scope.orders = [ data.data ];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM