I have a json array object like below
$scope.Json = [{ Id:"5464", Class:"9", Rank:"4" }]
I want to add a item "Name":"Vicky" to the Json. So that my result should be as below.
$scope.Json = [{ Id:"5464", Class:"9", Rank:"4", Name:"Vicky" }]
I am new to angular, can anyone help on this?