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

also change toJson function to accomodate passing in of number of spaces
realistically, nobody is passing objects or NaN or other weird stuff to this, and if they are, who cares? it's not like it's a critical part of anyone's app