So i have an array and i want to know if there's a way to filter data so that if i want to search for "Gallon of Milk", if i type just Milk, i still get a match. It's a JSONArray but i guess it behaves like a normal array.
It should work like the LIKE statement in SQL, where you just have to compare it and get something similar
I have been searching but haven't come across with anything that helps me, i just want to know if it's possible, and how can i adapt it to Android Studio, Thanks in Advance
My JSONArray:
[
{
"id":"1",
"itemCode":"5674779",
"qtyOnHand":"1",
"itemDesc":"TEST",
"itemPrice":87,
"itemRetail":"100.00",
"itemWholesale":"0",
"itemTax":"",
"itemTaxes":"1",
"itemCurrency":"\u20a1",
"itemWTaxes":null
},
{
"id":"2",
"itemCode":"8215651",
"qtyOnHand":"0",
"itemDesc":"PRODUCTO EN DOLARES",
"itemPrice":38.4975,
"itemRetail":"44.25",
"itemWholesale":"0",
"itemTax":"",
"itemTaxes":"1",
"itemCurrency":"$",
"itemWTaxes":null
}
]