I have an array of objects with large amount of data like This is the example data but I am having large amount of key pair values
[{ "id": 1, "name":"name1", age: 11, "skl": {"name": "KK school"} },
{ "id": 2, "name":"name2", age: 12, "skl": {"name": "KK school"} },
{ "id": 3, "name":"name3", age: 13, "skl": {"name": "KK school"} },
{ "id": 4, "name":"name4", age: 14, "skl": {"name": "KK school"} } ]
I need only id and name and skl name like.
[ { "id": 1, "name":"name1", "skl": {"name": "KK school"},
{ "id": 2, "name":"name2", "skl": {"name": "KK school"},
{ "id": 3, "name":"name3", "skl": {"name": "KK school"},
{ "id": 4, "name":"name4", "skl": {"name": "KK school"} ]
How to extract from these array of objects is there any possible solution
You can either specify the properties you want to keep, or specify the properties you want to remove: