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

also change toJson function to accomodate passing in of number of spaces
I think the idea is to keep backward compatibility by defaulting to 2 spaces when `pretty` is truthy, while allowing arbitrary indentations as well.
(Although, the way it is implemented, won't allow 0 indentation.)