change the filter to accomodate json request