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

also change toJson function to accomodate passing in of number of spaces
This needs a param name (i.e. spacing) before the description.
Also, if the above change is implemented (allowing anything as `spacing`) the type and description should be modified accordingly.