I have an object Like this
var Data= {
"firstname": {
"excelcolumnName": "firstName",
"dbcolumn": "one",
"testinfo": "basictest"
},
"labname": {
"excelcolumnName": "LabName",
"dbcolumn": "two",
"testinfo": "basictest"
},
"percentCbd": {
"excelcolumnName": "Percent CBD",
"dbcolumn": "three",
"testinfo": "Final Test"
}
"percentgeneral": {
"excelcolumnName": "Percent General",
"dbcolumn": "four",
"testinfo": "Final Test"
}
}
i want filter and create new object that contain testinfo:"basictest" the output of single object should be like this.
{
"one":"basictest",
"two":"basictest"
}
can any body help me on this.