feat(jsonFilter): add optional arg to define custom indentation

[very minor nit]
I think that
```js
if (typeof pretty !== "number") {
  pretty = pretty ? 2 : null;
}
```
is easier to read