Fix a typo and implement json filter