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

also change toJson function to accomodate passing in of number of spaces
No 0-space indentation here either.
BTW, it ight be better to use an explicit number (instead of `true`), so that the default behaviour of `jsonFilter` does not change when/if the default indentation of `toJson` changes.