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

also change toJson function to accomodate passing in of number of spaces
Yeah you're right, I didn't think of that edge case, will push a slight refactor.