filter JSON data with "AND" operator using jquery

filter JSON data with "AND" operator using jquery

Hi,

For example I have json data like this


firstName,lastName,instrument,born
John,Lennon,guitar,1940
Paul,McCartney,bass,1942
Jerry,Starr,drums,1940
George,Harrison,guitar,1943



I need to filter this data using "and" operator

For example, I can filter this data using jLinq library like this

  1. jLinq.from(dataJson)
  2.     .startsWith("firstName", "J")
  3.     .andEndsWith("y")
  4.     .select();

and I will get this result back


Jerry,Starr,drums,1940



However, because this library too large, I decide to try to not using this library..
is it possible doing the same thing (filter with "and" operator) using jQuery?

Many thanks