I have a huge json array.Now I need to seggregate this array and form another json array.And the condition for that is it should have "dbstatus":-3 in my each json object
data = [{"id":"122","dbstatus":-3},{"id":"123","dbstatus":"-6"},{"id":"414","dbstatus":-3}]
Now in my new array it should have only following
data2=[{"id":"122","dbstatus":-3},{"id":"414","dbstatus":-3}]
How can we do this.can someone help