Add a test for the `json` filter.