Code is modified to make filters function.

As right now filter by taxnomony is not supported by JSON_API
so created function which will solve our purpose.