I have an response as a json array with lots of records but i want to filter that json array by using another json array.
my json response
and my filter json array be like
"filterParams" : [
{
"param" : "actualSum",
"value" : "95",
"type" : "text",
"comparision" : "isEqual"
},
{
"param" : "wbsSort",
"value" : "6",
"type" : "text",
"comparision" : "isEqual"
}
],
so how can i filter my response using javascript or node js anything. i want to get filtered data like match param with reponse param and its value.
e.g. if there is match value of actualSum with 95 and wbsSort's value equal to 6 then it will return true other wise false.
trueorfalse) as you said or really filtering down the results to the specified parameters ?