Assuming my current object is this below:
{
"name": 1
"type": 2
"kind": 2
}
I want to print all the objects in the array that have the same "type" as my current object, which is 2.
[
{
"name": 1
"type": 2
"kind": 3
},
{
"name": 2
"type": 2
"kind": 1
},
{
"name": 2
"type": 1
"kind": 3
}
]
EXPECTED OUTPUT:
[
{
"name": 1
"type": 2
"kind": 3
},
{
"name": 2
"type": 2
"kind": 1
}
]