Sumit Ringane

Sumit Ringane

  • NA
  • 195
  • 36.7k

How to get filter data from Json table in jquery ?

Jul 9 2018 8:46 AM
 Hello Sir,
Suppose We have Json Like below, 
{"Table":   
 [{"RetailerID":1,"Metal":"W,Y"},
{"RetailerID":3,"Metal":"W"} ,
{"RetailerID":4,"Metal":"G"} 
]}
I want to result base on Metal='W' with filter json data as fallow
 
{"Table":
[{"RetailerID":1,"Metal":"W,Y"},
{"RetailerID":3,"Metal":"W"} 
]}
 
How to get result in jquery ? if anyone to know about this solution please guid me. 

Answers (2)