I need to manipulate a JSON response by removing specific object key values and storing the edited response separately for later use. While I know how to do this in simple JavaScript, I am unfamiliar with how to achieve this using AngularJS.
Json response
{
"$id": "1",
"XYZ": [],
"ABC": [
{
"$id": "41",
"ID": 1,
"Order": 0,
"Delay": 0,
"Name": "abc",
"Count": "9",
"Storage": 3,
"Groups": []
}
],
"Projected": 2019
}
I want to filter out the following key values from this JSON file:
"$id": "41"
,"ID": 1
,"Order": 0
,
"Delay": 0
, "Groups": []
, "Name": "abc"
The structure of the new JSON that I wish to store should be:
{
"$id": "1",
"XYZ": [],
"ABC": [
{
"Count": "9",
"Storage": 3
}
],
"Projected": 2019
}
Is there a method to achieve this using AngularJS?