How can I extract the firstname from an array of Objects using this code snippet?
$scope.value=JSON.stringify(myData);
The $scope.value output looks like this:
[{"firstname":"Swag","lastname":"Dear"}]
I am trying to retrieve $scope.value[0].firstname
but I am having trouble getting the record. Can someone please advise me on how to retrieve it correctly?