implement the json filter