title: I want to filter Nested JSON which also contains an array
body: <pre><code>{
      &quot;data&quot;: {
          &quot;typeList&quot;: [
              {
                  &quot;name&quot;: &quot;Important&quot;
              },
              {
                  &quot;name&quot;: &quot;Govt&quot;
              },
              {
                  &quot;name&quot;: &quot;Bank&quot;
              },
              {
                  &quot;name&quot;: &quot;Other&quot;
              }
          ],
          &quot;cropList&quot;: [
              &quot;Ajwan&quot;,
              &quot;Alasande Gram&quot;,
              &quot;Alsandikai&quot;,
              &quot;Amaranthus&quot;,
              &quot;Amla(Nelli Kai)&quot;,
              &quot;Amphophalus&quot;,
              &quot;Apple&quot;,
              &quot;Arecanut(Betelnut/Supari)&quot;,
              &quot;Arhar (Tur/Red Gram)(Whole)&quot;,
              &quot;Arhar Dal(Tur Dal)&quot;,
              &quot;Ashgourd&quot;,
              &quot;Avare Dal&quot;,
              &quot;BOP&quot;,
              &quot;Bajra(Pearl Millet/Cumbu)&quot;,
              &quot;Banana&quot;,
              &quot;Banana - Green&quot;,
              &quot;Barley (Jau)&quot;,
              &quot;Beans&quot;,
              &quot;Beaten Rice&quot;,
              &quot;Beetroot&quot;,
              &quot;Bengal Gram Dal (Chana Dal)&quot;,
              &quot;Bengal Gram(Gram)(Whole)&quot;,
              &quot;Ber(Zizyphus/Borehannu)&quot;,
              &quot;Betal Leaves&quot;,
              &quot;Bhindi(Ladies Finger)&quot;,
              &quot;Bitter gourd&quot;,
              &quot;Black Gram (Urd Beans)(Whole)&quot;,
              &quot;Black Gram Dal (Urd Dal)&quot;,
              &quot;Black pepper&quot;,
              &quot;Borehannu&quot;,
              &quot;Bottle gourd&quot;,
              &quot;Bran&quot;,
              &quot;Brinjal&quot;,
              &quot;Broken Rice&quot;,
              &quot;Bunch Beans&quot;,
              &quot;Cabbage&quot;,
              &quot;Capsicum&quot;,
              &quot;Cardamoms&quot;,
              &quot;Carnation&quot;,
              &quot;Carrot&quot;,
              &quot;Cashewnuts&quot;,
              &quot;Castor Seed&quot;,
              &quot;Cauliflower&quot;,
              &quot;Chapparad Avare&quot;,
              &quot;Chennangi Dal&quot;,
              &quot;Chikoos(Sapota)&quot;,
              &quot;Chili Red&quot;,
              &quot;Chilly Capsicum&quot;,
              &quot;Chow Chow&quot;,
              &quot;Cloves&quot;,
              &quot;Cluster beans&quot;,
              &quot;Coca&quot;,
              &quot;Cock&quot;,
              &quot;Coconut&quot;,
              &quot;Coconut Oil&quot;,
              &quot;Coconut Seed&quot;,
              &quot;Coffee&quot;,
              &quot;Colacasia&quot;,
              &quot;Copra&quot;,
              &quot;Coriander(Leaves)&quot;,
              &quot;Corriander seed&quot;,
              &quot;Cotton&quot;,
              &quot;Cowpea (Lobia/Karamani)&quot;,
              &quot;Cowpea(Veg)&quot;,
              &quot;Cucumbar(Kheera)&quot;,
              &quot;Cummin Seed(Jeera)&quot;,
              &quot;Dalda&quot;,
              &quot;Delha&quot;,
              &quot;Dhaincha&quot;,
              &quot;Drumstick&quot;,
              &quot;Dry Chillies&quot;,
              &quot;Dry Fodder&quot;,
              &quot;Dry Grapes&quot;,
              &quot;Duck&quot;,
              &quot;Duster Beans&quot;,
              &quot;Egg&quot;,
              &quot;Elephant Yam (Suran)&quot;,
              &quot;Field Pea&quot;,
              &quot;Firewood&quot;,
              &quot;Fish&quot;,
              &quot;Foxtail Millet(Navane)&quot;,
              &quot;French Beans (Frasbean)&quot;,
              &quot;Galgal(Lemon)&quot;,
              &quot;Garlic&quot;,
              &quot;Ghee&quot;,
              &quot;Gingelly Oil&quot;,
              &quot;Ginger(Dry)&quot;,
              &quot;Ginger(Green)&quot;,
              &quot;Gladiolus Cut Flower&quot;,
              &quot;Goat&quot;,
              &quot;Gram Raw(Chholia)&quot;,
              &quot;Grapes&quot;,
              &quot;Green Avare (W)&quot;,
              &quot;Green Chilli&quot;,
              &quot;Green Fodder&quot;,
              &quot;Green Gram (Moong)(Whole)&quot;,
              &quot;Green Gram Dal (Moong Dal)&quot;,
              &quot;Green Peas&quot;,
              &quot;Ground Nut Seed&quot;,
              &quot;Groundnut&quot;,
              &quot;Groundnut (Split)&quot;,
              &quot;Groundnut pods (raw)&quot;,
              &quot;Guar&quot;,
              &quot;Guar Seed(Cluster Beans Seed)&quot;,
              &quot;Guava&quot;,
              &quot;Gur(Jaggery)&quot;,
              &quot;Hen&quot;,
              &quot;Honge seed&quot;,
              &quot;Hybrid Cumbu&quot;,
              &quot;Indian Beans (Seam)&quot;,
              &quot;Indian Colza(Sarson)&quot;,
              &quot;Isabgul (Psyllium)&quot;,
              &quot;Jack Fruit&quot;,
              &quot;Jarbara&quot;,
              &quot;Jasmine&quot;,
              &quot;Jowar(Sorghum)&quot;,
              &quot;Jute&quot;,
              &quot;Kabuli Chana(Chickpeas-White)&quot;,
              &quot;Karbuja(Musk Melon)&quot;,
              &quot;Kinnow&quot;,
              &quot;Knool Khol&quot;,
              &quot;Kodo Millet(Varagu)&quot;,
              &quot;Kulthi(Horse Gram)&quot;,
              &quot;Lak(Teora)&quot;,
              &quot;Leafy Vegetable&quot;,
              &quot;Lemon&quot;,
              &quot;Lentil (Masur)(Whole)&quot;,
              &quot;Lilly&quot;,
              &quot;Lime&quot;,
              &quot;Linseed&quot;,
              &quot;Little gourd (Kundru)&quot;,
              &quot;Long Melon(Kakri)&quot;,
              &quot;Lotus Sticks&quot;,
              &quot;Mace&quot;,
              &quot;Mahua&quot;,
              &quot;Mahua Seed(Hippe seed)&quot;,
              &quot;Maida Atta&quot;,
              &quot;Maize&quot;,
              &quot;Mango&quot;,
              &quot;Mango (Raw-Ripe)&quot;,
              &quot;Marigold(Calcutta)&quot;,
              &quot;Mashrooms&quot;,
              &quot;Masur Dal&quot;,
              &quot;Mataki&quot;,
              &quot;Methi Seeds&quot;,
              &quot;Methi(Leaves)&quot;,
              &quot;Millets&quot;,
              &quot;Mint(Pudina)&quot;,
              &quot;Moath Dal&quot;,
              &quot;Mousambi(Sweet Lime)&quot;,
              &quot;Mustard&quot;,
              &quot;Mustard Oil&quot;,
              &quot;Neem Seed&quot;,
              &quot;Niger Seed (Ramtil)&quot;,
              &quot;Nutmeg&quot;,
              &quot;Onion&quot;,
              &quot;Onion Green&quot;,
              &quot;Orange&quot;,
              &quot;Orchid&quot;,
              &quot;Paddy(Dhan)(Basmati)&quot;,
              &quot;Paddy(Dhan)(Common)&quot;,
              &quot;Papaya&quot;,
              &quot;Papaya (Raw)&quot;,
              &quot;Patti Calcutta&quot;,
              &quot;Pear(Marasebu)&quot;,
              &quot;Peas Wet&quot;,
              &quot;Peas cod&quot;,
              &quot;Peas(Dry)&quot;,
              &quot;Pegeon Pea (Arhar Fali)&quot;,
              &quot;Pepper garbled&quot;,
              &quot;Pepper ungarbled&quot;,
              &quot;Pigs&quot;,
              &quot;Pineapple&quot;,
              &quot;Plum&quot;,
              &quot;Pointed gourd (Parval)&quot;,
              &quot;Pomegranate&quot;,
              &quot;Potato&quot;,
              &quot;Pumpkin&quot;,
              &quot;Raddish&quot;,
              &quot;Ragi (Finger Millet)&quot;,
              &quot;Raibel&quot;,
              &quot;Rajgir&quot;,
              &quot;Rat Tail Radish (Mogari)&quot;,
              &quot;Rice&quot;,
              &quot;Ridgeguard(Tori)&quot;,
              &quot;Rose(Local)&quot;,
              &quot;Round gourd&quot;,
              &quot;Rubber&quot;,
              &quot;Safflower&quot;,
              &quot;Sajje&quot;,
              &quot;Season Leaves&quot;,
              &quot;Seemebadnekai&quot;,
              &quot;Seetapal&quot;,
              &quot;Sesamum(Sesame,Gingelly,Til)&quot;,
              &quot;Sheep&quot;,
              &quot;Snakeguard&quot;,
              &quot;Soanf&quot;,
              &quot;Soji&quot;,
              &quot;Soyabean&quot;,
              &quot;Spinach&quot;,
              &quot;Sponge gourd&quot;,
              &quot;Squash(Chappal Kadoo)&quot;,
              &quot;Sugar&quot;,
              &quot;Sunflower&quot;,
              &quot;Surat Beans (Papadi)&quot;,
              &quot;Suva (Dill Seed)&quot;,
              &quot;Suvarna Gadde&quot;,
              &quot;Sweet Potato&quot;,
              &quot;Sweet Pumpkin&quot;,
              &quot;T.V. Cumbu&quot;,
              &quot;Tamarind Fruit&quot;,
              &quot;Tamarind Seed&quot;,
              &quot;Tapioca&quot;,
              &quot;Taramira&quot;,
              &quot;Tender Coconut&quot;,
              &quot;Thinai (Italian Millet)&quot;,
              &quot;Thondekai&quot;,
              &quot;Tinda&quot;,
              &quot;Tobacco&quot;,
              &quot;Tomato&quot;,
              &quot;Tube Rose(Double)&quot;,
              &quot;Tube Rose(Single)&quot;,
              &quot;Turmeric&quot;,
              &quot;Turmeric (raw)&quot;,
              &quot;Turnip&quot;,
              &quot;Water Melon&quot;,
              &quot;Wheat&quot;,
              &quot;Wheat Atta&quot;,
              &quot;White Peas&quot;,
              &quot;White Pumpkin&quot;,
              &quot;Wood&quot;,
              &quot;Yam&quot;,
              &quot;Yam (Ratalu)&quot;
          ],
          &quot;notifications&quot;: [
              {
                  &quot;description&quot;: &quot;sansjd&quot;,
                  &quot;date&quot;: &quot;20-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Bank&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Ajwan&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 953,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.&quot;,
                  &quot;date&quot;: &quot;20-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Bank&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Ajwan&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Alasande Gram&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1010,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;sansjd&quot;,
                  &quot;date&quot;: &quot;20-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Bank&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Ajwan&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1052,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.&quot;,
                  &quot;date&quot;: &quot;19-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alsandikai&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Alasande Gram&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1002,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Kozhikode(Calicut)&quot;
                          ],
                          &quot;stateName&quot;: &quot;Kerala&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Gandhinagar&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;sndnds&quot;,
                  &quot;date&quot;: &quot;13-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alsandikai&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Ajwan&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 954,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;East Khasi Hills&quot;
                          ],
                          &quot;stateName&quot;: &quot;Meghalaya&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.&quot;,
                  &quot;date&quot;: &quot;13-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alsandikai&quot;,
                      &quot;Amaranthus&quot;,
                      &quot;Alasande Gram&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1005,
                  &quot;isPublished&quot;: true,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Kozhikode(Calicut)&quot;
                          ],
                          &quot;stateName&quot;: &quot;Kerala&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.&quot;,
                  &quot;date&quot;: &quot;12-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Alsandikai&quot;,
                      &quot;Alasande Gram&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1004,
                  &quot;isPublished&quot;: true,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.&quot;,
                  &quot;date&quot;: &quot;05-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Amaranthus&quot;,
                      &quot;Amaranthus&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1003,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Last fall’s harvest was challenging for a lot of Missouri’s farmers. Andy Luke, a University of Missouri Extension agronomist based in Harrison County, in northwest Missouri, says wet weather slowed harvest progress, even preventing some fields from being harvested.&quot;,
                  &quot;date&quot;: &quot;04-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Alasande Gram&quot;,
                      &quot;Alasande Gram&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1952,
                  &quot;isPublished&quot;: true,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;East Khasi Hills&quot;
                          ],
                          &quot;stateName&quot;: &quot;Meghalaya&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Kozhikode(Calicut)&quot;
                          ],
                          &quot;stateName&quot;: &quot;Kerala&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Ernakulam&quot;
                          ],
                          &quot;stateName&quot;: &quot;Kerala&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Palmer amaranth is the pigweed species that rightfully earns the most consternation from Midwest farmers. But don’t forget that waterhemp can be just as invasive and contains many of the same characteristics as Palmer.\n\nThat’s the take-home message from Brian Jenks, weed specialist at North Dakota State University, during the annual Ag Horizons Conference in Pierre, South Dakota, on November 26.\n\n“From the Dakotas, through Iowa, Illinois, and Indiana and across the Midwest, waterhemp is becoming a huge problem,” warns Jenks.&quot;,
                  &quot;date&quot;: &quot;02-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alsandikai&quot;,
                      &quot;Alasande Gram&quot;,
                      &quot;Ajwan&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1007,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Kozhikode(Calicut)&quot;
                          ],
                          &quot;stateName&quot;: &quot;Kerala&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Gandhinagar&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;An aid of Rs. 1,507 crore has been credited into bank accounts of 42 lakh drought-affected farmers, Maharashtra Finance Minister Sudhir Mungantiwar said on Wednesday. He said Rs. 2,909 crore have been allocated for this purpose.\nPresenting a vote-on-account in the Legislative Assembly, Mr Mungantiwar said 82,27,166 farmers in 151 tehsils with land holding of 85.76 lakh hectares have been affected by drought.&quot;,
                  &quot;date&quot;: &quot;02-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Bank&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Ajwan&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1008,
                  &quot;isPublished&quot;: true,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;,
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;An aid of Rs. 1,507 crore has been credited into bank accounts of 42 lakh drought-affected farmers, Maharashtra Finance Minister Sudhir Mungantiwar said on Wednesday. He said Rs. 2,909 crore have been allocated for this purpose.\nPresenting a vote-on-account in the Legislative Assembly, Mr Mungantiwar said 82,27,166 farmers in 151 tehsils with land holding of 85.76 lakh hectares have been affected by drought.&quot;,
                  &quot;date&quot;: &quot;02-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Bank&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Ajwan&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Alasande Gram&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1009,
                  &quot;isPublished&quot;: true,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Amreli&quot;,
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;,
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Test&quot;,
                  &quot;date&quot;: &quot;12-02-2019&quot;,
                  &quot;month&quot;: &quot;2&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Alasande Gram&quot;,
                      &quot;Alsandikai&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;Test&quot;,
                  &quot;date&quot;: &quot;12-02-2019&quot;,
                  &quot;month&quot;: &quot;2&quot;,
                  &quot;type&quot;: &quot;Govt&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Alasande Gram&quot;,
                      &quot;Alsandikai&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 2,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              },
              {
                  &quot;description&quot;: &quot;english desc&quot;,
                  &quot;date&quot;: &quot;30-01-2019&quot;,
                  &quot;month&quot;: &quot;1&quot;,
                  &quot;type&quot;: &quot;Important&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Cowpea (Lobia/Karamani)&quot;,
                      &quot;Karbuja(Musk Melon)&quot;,
                      &quot;Pointed gourd (Parval)&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 1103,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Banaskanth&quot;,
                              &quot;Amreli&quot;,
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Baghpat&quot;,
                              &quot;Bahraich&quot;,
                              &quot;Bareilly&quot;
                          ],
                          &quot;stateName&quot;: &quot;Uttar Pradesh&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Dindigul&quot;,
                              &quot;Kancheepuram&quot;,
                              &quot;Coimbatore&quot;
                          ],
                          &quot;stateName&quot;: &quot;Tamil Nadu&quot;
                      }
                  ]
              }
          ]
      }
  } 
  </code></pre>
  <p>Above is my json object. I have three dropdowns: month, croplist and statelist. I want to write one filter function for example if I selected month=3 croplist=&quot;Ajwan&quot; and state=&quot;gujrat&quot; then is should show below result from notification array</p>
  <pre><code> {
                  &quot;description&quot;: &quot;sansjd&quot;,
                  &quot;date&quot;: &quot;20-03-2019&quot;,
                  &quot;month&quot;: &quot;3&quot;,
                  &quot;type&quot;: &quot;Bank&quot;,
                  &quot;croptypes&quot;: [
                      &quot;Alasande Gram&quot;,
                      &quot;Ajwan&quot;,
                      &quot;Ajwan&quot;
                  ],
                  &quot;notificationDetailsId&quot;: 953,
                  &quot;isPublished&quot;: false,
                  &quot;statesAndDis&quot;: [
                      {
                          &quot;districtName&quot;: [
                              &quot;Anand&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      },
                      {
                          &quot;districtName&quot;: [
                              &quot;Amreli&quot;
                          ],
                          &quot;stateName&quot;: &quot;Gujarat&quot;
                      }
                  ]
              } 
  </code></pre>
  <p>I am able to get result by selecting month and croplist using below code in pipe</p>
  <pre><code>import { Pipe, PipeTransform } from '@angular/core';
  
  @Pipe({
    name: 'objectFilter'
  })
  export class ObjectFilterPipe implements PipeTransform {
  
    transform(value: any, args?: any): any {
  
      if(Object.keys(args).length&lt;1){
        
        return false;
      }
      else {
        return value.filter(function(obj) {
        return   Object.keys(args).every(function(c) {
            return new RegExp(args[c]).test(obj[c]);
          });
        });
  
      }
    }
  
  }
  </code></pre>
  <p>filter function in component</p>
  <pre><code>filterSelection() {
      
      let monthValue = this.monthControl.value;
  
      let stateDistValue = this.statedistControl.value;
      let croptypeValue = this.croptypeControl.value;
      let crpArr: Array&lt;any&gt; = []
      let statedisarray:Array&lt;any&gt;=[]
      if (monthValue == null || monthValue == 0) {
        monthValue = ''
      }
      if (stateDistValue == null || stateDistValue == &quot;All&quot;) {
        stateDistValue = ''
      }
      if (croptypeValue == null || croptypeValue == &quot;All&quot;) {
        croptypeValue = ''
      }
   
      crpArr.push(croptypeValue)
    
      
  
      this.notificationList = this.objflt.transform(this.newList, { month: monthValue,statesAndDis:[{stateName:stateDistValue}], croptypes: crpArr })
      console.log(&quot;After Filter ----&quot;,this.notificationList)
  }
  </code></pre>