Angularjs add a viariable to an object in a jsonarray : I'm looking for a solution to add a viariable to an object in a jsonarray.

my json file:

    [
    {
        "BasketDetail_ID": "91",
        "Pos": "1",
        "BasketBasket_ID": "17",
    },
    {
        "BasketDetail_ID": "92",
        "Pos": "2",
        "BasketBasket_ID": "17",
    },
    {
        "BasketDetail_ID": "93",
        "Pos": "3",
        "BasketBasket_ID": "17",
    },
    {
        "BasketDetail_ID": "94",
        "Pos": "4",
        "BasketBasket_ID": "17",
    },
    {
        "BasketDetail_ID": "95",
        "Pos": "5",
        "BasketBasket_ID": "17",
    },
    {
        "BasketDetail_ID": "96",
        "Pos": "6",
        "BasketBasket_ID": "17",
    },
    {
        "BasketDetail_ID": "97",
        "Pos": "7",
        "BasketBasket_ID": "17",
    },
    {
        "BasketDetail_ID": "98",
        "Pos": "8",
        "BasketBasket_ID": "17",

    }
    ]

My objects do not have names.

I tried to make a push for each object:

    var length = basketDetails.length;
		for (var i = 0; i < length; i++) {
			$scope.basketDetails[i].push({'detailTotalPrice': $scope.detailTotalPrice});
		}

Here I always get an error:
$scope.basketDetails[i].add is not a function

the updated json should look like:

    [
    {
        "BasketDetail_ID": "91",
        "Pos": "1",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",
    },
    {
        "BasketDetail_ID": "92",
        "Pos": "2",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",
    },
    {
        "BasketDetail_ID": "93",
        "Pos": "3",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",
    },
    {
        "BasketDetail_ID": "94",
        "Pos": "4",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",
    },
    {
        "BasketDetail_ID": "95",
        "Pos": "5",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",
    },
    {
        "BasketDetail_ID": "96",
        "Pos": "6",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",
    },
    {
        "BasketDetail_ID": "97",
        "Pos": "7",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",
    },
    {
        "BasketDetail_ID": "98",
        "Pos": "8",
        "BasketBasket_ID": "17",
        "detailTotalPrice": "100",

    }
    ]


have somebody an idea to fix this problem?