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

also change toJson function to accomodate passing in of number of spaces
A little far-fetched, but you can't use pretty-printing with 0-space indentation.
Just saying...