Instead of listing the filters in code like this:
I would like to add them from a JSON array. How would I go about this? When I try, all I get is one filter being appended to the query string not in the correct format, rather looking like this:
instead of:
dataSource.filter([ { field: "orderId", operator: "neq", value: 42 }, { field: "unitPrice", operator: "ge", value: 3.14 }]);I would like to add them from a JSON array. How would I go about this? When I try, all I get is one filter being appended to the query string not in the correct format, rather looking like this:
filter[filters][]instead of:
filter[filters][0][field]filter[filters][0][operator]filter[filters][0][value]